/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 36 SkColor makeLight(SkColor color) { in makeLight() 47 SkColor makeDark(SkColor color) { in makeDark() 58 SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor() 69 SkColor transformColorInverse(ColorTransform transform, SkColor color) { in transformColorInverse() 96 SkColor newColor = transformColor(transform, paint.getColor()); in applyColorTransform() 101 std::array<SkColor, 10> _colorStorage; in applyColorTransform() 120 SkColor color; in applyColorTransform() 129 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV()
|
D | ColorFilter.h | 66 BlendModeColorFilter(SkColor color, SkBlendMode mode) : mColor(color), mMode(mode) {} in BlendModeColorFilter() 72 const SkColor mColor; 78 LightingFilter(SkColor mul, SkColor add) : mMul(mul), mAdd(add) {} in LightingFilter() 80 void setMul(SkColor mul) { in setMul() 85 void setAdd(SkColor add) { in setAdd() 94 SkColor mMul; 95 SkColor mAdd;
|
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 | 48 SkColor transformColor(ColorTransform transform, SkColor color); 49 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 | 124 virtual void forEachFillColor(const std::function<void(SkColor)>& func) const { } in forEachFillColor() 210 SkColor strokeColor = SK_ColorTRANSPARENT; 212 SkColor fillColor = SK_ColorTRANSPARENT; 249 SkColor getStrokeColor() const { return mPrimitiveFields.strokeColor; } in getStrokeColor() 250 void setStrokeColor(SkColor strokeColor) { in setStrokeColor() 257 SkColor getFillColor() const { return mPrimitiveFields.fillColor; } in getFillColor() 258 void setFillColor(SkColor fillColor) { in setFillColor() 283 void updateProperties(float strokeWidth, SkColor strokeColor, float strokeAlpha, in updateProperties() 284 SkColor fillColor, float fillAlpha, float trimPathStart, in updateProperties() 355 void forEachFillColor(const std::function<void(SkColor)>& func) const override { in forEachFillColor() [all …]
|
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 | RenderProperties.h | 533 SkColor getSpotShadowColor() const { return mPrimitiveFields.mSpotShadowColor; } in getSpotShadowColor() 535 bool setSpotShadowColor(SkColor shadowColor) { in setSpotShadowColor() 539 SkColor getAmbientShadowColor() const { return mPrimitiveFields.mAmbientShadowColor; } in getAmbientShadowColor() 541 bool setAmbientShadowColor(SkColor shadowColor) { in setAmbientShadowColor() 577 SkColor mSpotShadowColor = SK_ColorBLACK; 578 SkColor mAmbientShadowColor = SK_ColorBLACK;
|
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.h | 164 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode, 168 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int, 245 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode, 250 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
|
D | RecordingCanvas.cpp | 442 auto colors = (0 == fs) ? nullptr : pod<SkColor>(this, (xs + ys) * sizeof(int)); in draw() 445 this, (xs + ys) * sizeof(int) + fs * sizeof(SkColor)); in draw() 466 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch() 480 SkColor colors[4]; 607 auto colors = has_colors ? pod<SkColor>(this, count * (sizeof(SkRSXform) + sizeof(SkRect))) in draw() 895 fs * sizeof(SkColor); in drawImageLattice() 913 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch() 934 const SkColor colors[], int count, SkBlendMode xfermode, in drawAtlas() 939 bytes += count * sizeof(SkColor); in drawAtlas() 1058 SkColor color = transformColorInverse(transform, op->mParams.color); in colorTransformForOp() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | PartialDamageAnimation.cpp | 34 static SkColor COLORS[] = { in createContent() 42 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() 60 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0); in doFrame()
|
D | ListOfFadedTextAnimation.cpp | 46 SkColor colors[2] = {Color::Black, Color::Transparent}; in createListItem()
|
D | SimpleGradientAnimation.cpp | 59 SkColor colors[3] = {Color::Transparent, Color::Black, Color::Cyan_500}; in createCard()
|
/frameworks/native/services/surfaceflinger/ |
D | HdrSdrRatioOverlay.cpp | 28 void HdrSdrRatioOverlay::drawNumber(float number, int left, SkColor color, SkCanvas& canvas) { in drawNumber() 44 sp<GraphicBuffer> HdrSdrRatioOverlay::draw(float currentHdrSdrRatio, SkColor color, in draw() 172 constexpr SkColor kMinRatioColor = SK_ColorBLUE; in getOrCreateBuffers() 173 constexpr SkColor kMaxRatioColor = SK_ColorGREEN; in getOrCreateBuffers() 188 const SkColor color = colorBase.toSkColor(); in getOrCreateBuffers()
|
D | HdrSdrRatioOverlay.h | 45 static sp<GraphicBuffer> draw(float currentHdrSdrRatio, SkColor, ui::Transform::RotationFlags, 47 static void drawNumber(float number, int left, SkColor, SkCanvas&);
|
D | RefreshRateOverlay.h | 69 static Buffers draw(int refreshRate, int renderFps, bool idle, SkColor, 71 static void drawNumber(int number, int left, SkColor, SkCanvas&);
|
D | RefreshRateOverlay.cpp | 31 auto RefreshRateOverlay::draw(int refreshRate, int renderFps, bool idle, SkColor color, in draw() 134 void RefreshRateOverlay::drawNumber(int number, int left, SkColor color, SkCanvas& canvas) { in drawNumber() 229 constexpr SkColor kMinFpsColor = SK_ColorRED; in getOrCreateBuffers() 230 constexpr SkColor kMaxFpsColor = SK_ColorGREEN; in getOrCreateBuffers() 241 const SkColor color = colorBase.toSkColor(); in getOrCreateBuffers()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 45 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { in interpolateColor() 130 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor()
|
D | CallCountingCanvas.h | 100 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch() 126 const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions&, in onDrawAtlas2()
|
D | TestUtils.h | 263 static SkColor interpolateColor(float fraction, SkColor start, SkColor end); 273 static SkColor getColor(const sk_sp<SkSurface>& surface, int x, int y);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | ReorderBarrierDrawables.cpp | 127 static SkColor multiplyAlpha(SkColor color, float alpha) { in multiplyAlpha() 212 SkColor ambientColor = multiplyAlpha(casterProperties.getAmbientShadowColor(), ambientAlpha); in drawShadow() 213 SkColor spotColor = multiplyAlpha(casterProperties.getSpotShadowColor(), spotAlpha); in drawShadow()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 38 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], in onDrawPatch() 65 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas2() argument
|
/frameworks/base/libs/hwui/utils/ |
D | Color.h | 128 Lab sRGBToLab(SkColor color); 129 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
|
/frameworks/native/services/surfaceflinger/Utils/ |
D | OverlayUtils.h | 86 static void drawSegment(Segment segment, int left, SkColor color, SkCanvas& canvas) { in drawSegment() 121 static void drawDigit(int digit, int left, SkColor color, SkCanvas& canvas) { in drawDigit()
|