HomeSort by relevance Sort by last modified time
    Searched refs:toColor (Results 1 - 15 of 15) sorted by null

  /external/chromium_org/third_party/WebKit/Source/core/svg/
ColorDistance.cpp 32 float ColorDistance::distance(const Color& fromColor, const Color& toColor)
34 int redDiff = toColor.red() - fromColor.red();
35 int greenDiff = toColor.green() - fromColor.green();
36 int blueDiff = toColor.blue() - fromColor.blue();
ColorDistance.h 30 static float distance(const Color& fromColor, const Color& toColor);
SVGAnimatedColor.cpp 57 Color toColor = m_styleColor.resolve(fallbackColor);
58 m_styleColor = StyleColor(ColorDistance::addColors(fromColor, toColor));
71 Color toColor = toStyleColor.resolve(fallbackColor);
77 animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.red(), toColor.red(), toAtEndOfDurationColor.red(), animatedRed);
80 animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.green(), toColor.green(), toAtEndOfDurationColor.green(), animatedGreen);
83 animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.blue(), toColor.blue(), toAtEndOfDurationColor.blue(), animatedBlue);
86 animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.alpha(), toColor.alpha(), toAtEndOfDurationColor.alpha(), animatedAlpha);
97 Color toColor = toSVGColorProperty(toValue)->m_styleColor.resolve(fallbackColor);
98 return ColorDistance::distance(fromColor, toColor);
  /external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
AnimatableColorTest.cpp 40 TEST(AnimationAnimatableColorTest, ToColor)
42 Color transparent = AnimatableColorImpl(Color::transparent).toColor();
44 Color red = AnimatableColorImpl(Color(0xFFFF0000)).toColor();
50 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFF00FF00), -10).toColor().rgb(), 0xFF00FF00);
51 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), -10).toColor().rgb(), 0xFF00FF00);
52 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 0).toColor().rgb(), 0xFF00FF00);
53 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 1. / 255).toColor().rgb(), 0xFF01FE01);
54 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 0.5).toColor().rgb(), 0xFF808080);
55 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 254. / 255).toColor().rgb(), 0xFFFE01FE);
56 EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 1).toColor().rgb(), 0xFFFF00FF)
    [all...]
AnimatableColor.h 43 Color toColor() const;
62 Color color() const { return m_color.toColor(); }
63 Color visitedLinkColor() const { return m_visitedLinkColor.toColor(); }
AnimatableColor.cpp 64 Color AnimatableColorImpl::toColor() const
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 public abstract void drawMixed(BasicTexture from, int toColor,
116 public abstract void drawMixed(BasicTexture from, int toColor,
GLES20Canvas.java 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) {
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) {
780 fillRect(target.left, target.top, target.width(), target.height(), toColor);
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
GLCanvas.java 111 public abstract void drawMixed(BasicTexture from, int toColor,
118 public abstract void drawMixed(BasicTexture from, int toColor,
GLES11Canvas.java 451 int toColor, float ratio, int x, int y, int w, int h) {
452 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha);
471 private void setMixedColor(int toColor, float ratio, float alpha) {
487 // RGB component are get from toColor and will used as SRC1
488 float colorScale = scale * (toColor >>> 24) / (0xff * 0xff);
489 setTextureColor(((toColor >>> 16) & 0xff) * colorScale,
490 ((toColor >>> 8) & 0xff) * colorScale,
491 (toColor & 0xff) * colorScale, combo);
513 public void drawMixed(BasicTexture from, int toColor, float ratio,
521 fillRect(target.left, target.top, target.width(), target.height(), toColor);
    [all...]
GLES20Canvas.java 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) {
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) {
780 fillRect(target.left, target.top, target.width(), target.height(), toColor);
    [all...]
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
GLCanvas.java 109 public abstract void drawMixed(BasicTexture from, int toColor,
116 public abstract void drawMixed(BasicTexture from, int toColor,
GLES20Canvas.java 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) {
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) {
780 fillRect(target.left, target.top, target.width(), target.height(), toColor);
    [all...]
  /external/deqp/framework/common/
tcuFuzzyImageCompare.cpp 63 static inline deUint32 toColor (Vec4 v)
186 writeUnorm8<DstChannels>(tmpAccess, j, i, toColor(sum));
205 writeUnorm8<DstChannels>(dst, i, j, toColor(sum));
  /external/deqp/framework/randomshaders/
rsgProgramExecutor.cpp 203 inline tcu::RGBA toColor (tcu::Vec4 rgba)

Completed in 271 milliseconds