/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 34 SkColor makeLight(SkColor color) { in makeLight() 45 SkColor makeDark(SkColor color) { in makeDark() 56 SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor() 67 SkColor transformColorInverse(ColorTransform transform, SkColor color) { in transformColorInverse() 81 SkColor newColor = transformColor(transform, paint.getColor()); in applyColorTransform() 86 std::array<SkColor, 10> _colorStorage; in applyColorTransform() 111 SkColor color; in applyColorTransform() 120 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV() 131 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette()
|
D | PropertyValuesHolder.h | 52 class ColorEvaluator : public Evaluator<SkColor> { 54 virtual void evaluate(SkColor* outColor, const SkColor& from, const SkColor& to, 102 class FullPathColorPropertyValuesHolder : public PropertyValuesHolderImpl<SkColor> { 105 SkColor startValue, SkColor endValue) in FullPathColorPropertyValuesHolder() 112 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction);
|
D | CanvasTransform.h | 45 SkColor transformColor(ColorTransform transform, SkColor color); 46 SkColor transformColorInverse(ColorTransform transform, SkColor color);
|
D | PropertyValuesHolder.cpp | 38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, in evaluate() 93 SkColor animatedValue = calculateAnimatedValue(fraction); in setFraction()
|
D | VectorDrawable.h | 123 virtual void forEachFillColor(const std::function<void(SkColor)>& func) const { } in forEachFillColor() 209 SkColor strokeColor = SK_ColorTRANSPARENT; 211 SkColor fillColor = SK_ColorTRANSPARENT; 248 SkColor getStrokeColor() const { return mPrimitiveFields.strokeColor; } in getStrokeColor() 249 void setStrokeColor(SkColor strokeColor) { in setStrokeColor() 256 SkColor getFillColor() const { return mPrimitiveFields.fillColor; } in getFillColor() 257 void setFillColor(SkColor fillColor) { in setFillColor() 282 void updateProperties(float strokeWidth, SkColor strokeColor, float strokeAlpha, in updateProperties() 283 SkColor fillColor, float fillAlpha, float trimPathStart, in updateProperties() 354 void forEachFillColor(const std::function<void(SkColor)>& func) const override { in forEachFillColor() [all …]
|
D | RenderProperties.h | 531 SkColor getSpotShadowColor() const { return mPrimitiveFields.mSpotShadowColor; } in getSpotShadowColor() 533 bool setSpotShadowColor(SkColor shadowColor) { in setSpotShadowColor() 537 SkColor getAmbientShadowColor() const { return mPrimitiveFields.mAmbientShadowColor; } in getAmbientShadowColor() 539 bool setAmbientShadowColor(SkColor shadowColor) { in setAmbientShadowColor() 579 SkColor mSpotShadowColor = SK_ColorBLACK; 580 SkColor mAmbientShadowColor = SK_ColorBLACK;
|
D | FrameInfoVisualizer.cpp | 37 SkColor color; 46 static constexpr SkColor BAR_FAST_MASK = 0x8FFFFFFF; 47 static constexpr SkColor BAR_JANKY_MASK = 0xDFFFFFFF; 52 SkColor color;
|
D | RecordingCanvas.h | 125 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode, 129 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int, 205 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode, 209 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
|
D | NinePatchUtils.h | 57 int numFlags, const Res_png_9patch& chunk, SkColor* colors) { in SetLatticeFlags() 61 sk_bzero(colors, numFlags * sizeof(SkColor)); in SetLatticeFlags()
|
D | RecordingCanvas.cpp | 376 auto colors = (0 == fs) ? nullptr : pod<SkColor>(this, (xs + ys) * sizeof(int)); in draw() 379 this, (xs + ys) * sizeof(int) + fs * sizeof(SkColor)); in draw() 398 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch() 412 SkColor colors[4]; 468 auto colors = has_colors ? pod<SkColor>(this, count * (sizeof(SkRSXform) + sizeof(SkRect))) in draw() 723 fs * sizeof(SkColor); in drawImageLattice() 741 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch() 754 const SkColor colors[], int count, SkBlendMode xfermode, in drawAtlas() 759 bytes += count * sizeof(SkColor); in drawAtlas() 876 SkColor color = transformColorInverse(transform, op->mParams.color); in colorTransformForOp() [all …]
|
D | VectorDrawable.cpp | 150 inline SkColor applyAlpha(SkColor color, float alpha) { in applyAlpha() 214 static_assert(sizeof(SkColor) == sizeof(int32_t), "SkColor is not the same size as int32_t"); 599 mRootNode->forEachFillColor([&](SkColor color) { in computePalette()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | PartialDamageAnimation.cpp | 32 static SkColor COLORS[] = { in createContent() 40 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() 58 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0); in doFrame()
|
D | ListOfFadedTextAnimation.cpp | 45 SkColor colors[2] = {Color::Black, Color::Transparent}; in createListItem()
|
D | SimpleGradientAnimation.cpp | 58 SkColor colors[3] = {Color::Transparent, Color::Black, Color::Cyan_500}; in createCard()
|
D | SimpleColorMatrixAnimation.cpp | 68 SkColor colors[2] = {Color::DeepPurple_500, Color::DeepOrange_500}; in createCard()
|
D | HwBitmapInCompositeShader.cpp | 59 SkColor colors[2]; in createContent()
|
D | BitmapFillrate.cpp | 56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 37 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { in interpolateColor() 122 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor()
|
D | CallCountingCanvas.h | 98 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch() 130 const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions&, in onDrawAtlas2()
|
D | TestUtils.h | 271 static SkColor interpolateColor(float fraction, SkColor start, SkColor end); 281 static SkColor getColor(const sk_sp<SkSurface>& surface, int x, int y);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | ReorderBarrierDrawables.cpp | 121 static SkColor multiplyAlpha(SkColor color, float alpha) { in multiplyAlpha() 206 SkColor ambientColor = multiplyAlpha(casterProperties.getAmbientShadowColor(), ambientAlpha); in drawShadow() 207 SkColor spotColor = multiplyAlpha(casterProperties.getSpotShadowColor(), spotAlpha); in drawShadow()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 36 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], in onDrawPatch() 63 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas2() argument
|
D | SkiaBehaviorTests.cpp | 48 SkColor observedColor; in TEST()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.h | 127 Lab sRGBToLab(SkColor color); 128 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
|
/frameworks/base/libs/hwui/jni/ |
D | GIFMovie.cpp | 37 SkColor fPaintingColor; 307 SkBitmap* backup, SkColor color) in disposeFrameIfNeeded() 393 SkColor bgColor = SkPackARGB32(0, 0, 0, 0); in onGetBitmap()
|