Home
last modified time | relevance | path

Searched refs:SkColor (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/libs/hwui/
DCanvasTransform.cpp35 static SkColor makeLight(SkColor color) { in makeLight()
46 static SkColor makeDark(SkColor color) { in makeDark()
57 static SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor()
71 SkColor newColor = transformColor(transform, paint.getColor()); in applyColorTransform()
76 std::array<SkColor, 10> _colorStorage; in applyColorTransform()
101 SkColor color; in applyColorTransform()
110 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV()
121 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette()
DPropertyValuesHolder.h52 class ANDROID_API ColorEvaluator : public Evaluator<SkColor> {
54 virtual void evaluate(SkColor* outColor, const SkColor& from, const SkColor& to,
102 class ANDROID_API FullPathColorPropertyValuesHolder : public PropertyValuesHolderImpl<SkColor> {
105 SkColor startValue, SkColor endValue) in FullPathColorPropertyValuesHolder()
112 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction);
DPropertyValuesHolder.cpp38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, in evaluate()
93 SkColor animatedValue = calculateAnimatedValue(fraction); in setFraction()
DVectorDrawable.h123 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 …]
DRenderProperties.h519 SkColor getSpotShadowColor() const { return mPrimitiveFields.mSpotShadowColor; } in getSpotShadowColor()
521 bool setSpotShadowColor(SkColor shadowColor) { in setSpotShadowColor()
525 SkColor getAmbientShadowColor() const { return mPrimitiveFields.mAmbientShadowColor; } in getAmbientShadowColor()
527 bool setAmbientShadowColor(SkColor shadowColor) { in setAmbientShadowColor()
566 SkColor mSpotShadowColor = SK_ColorBLACK;
567 SkColor mAmbientShadowColor = SK_ColorBLACK;
DRecordingCanvas.h120 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
125 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
206 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
211 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
DFrameInfoVisualizer.cpp37 SkColor color;
46 static constexpr SkColor BAR_FAST_MASK = 0x8FFFFFFF;
47 static constexpr SkColor BAR_JANKY_MASK = 0xDFFFFFFF;
52 SkColor color;
DNinePatchUtils.h57 int numFlags, const Res_png_9patch& chunk, SkColor* colors) { in SetLatticeFlags()
61 sk_bzero(colors, numFlags * sizeof(SkColor)); in SetLatticeFlags()
DRecordingCanvas.cpp393 auto colors = (0 == fs) ? nullptr : pod<SkColor>(this, (xs + ys) * sizeof(int)); in draw()
396 this, (xs + ys) * sizeof(int) + fs * sizeof(SkColor)); in draw()
413 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
427 SkColor colors[4];
482 auto colors = has_colors ? pod<SkColor>(this, count * (sizeof(SkRSXform) + sizeof(SkRect))) in draw()
666 fs * sizeof(SkColor); in drawImageLattice()
680 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch()
696 const SkColor colors[], int count, SkBlendMode xfermode, in drawAtlas()
700 bytes += count * sizeof(SkColor); in drawAtlas()
1000 void RecordingCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
[all …]
DVectorDrawable.cpp150 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/
DPartialDamageAnimation.cpp32 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()
DListOfFadedTextAnimation.cpp45 SkColor colors[2] = {Color::Black, Color::Transparent}; in createListItem()
DSimpleGradientAnimation.cpp58 SkColor colors[3] = {Color::Transparent, Color::Black, Color::Cyan_500}; in createCard()
DHwBitmapInCompositeShader.cpp59 SkColor colors[2]; in createContent()
DSimpleColorMatrixAnimation.cpp68 SkColor colors[2] = {Color::DeepPurple_500, Color::DeepOrange_500}; in createCard()
DBitmapFillrate.cpp56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode()
DTvApp.cpp94 sp<RenderNode> createBitmapNode(Canvas& canvas, SkColor color, int left, int top, int width, in createBitmapNode()
133 SkColor color) { in createColorNode()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp37 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()
DTestUtils.h280 static SkColor interpolateColor(float fraction, SkColor start, SkColor end);
302 static SkColor getColor(const sk_sp<SkSurface>& surface, int x, int y);
/frameworks/base/libs/hwui/pipeline/skia/
DReorderBarrierDrawables.cpp121 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/utils/
DColor.h130 Lab sRGBToLab(SkColor color);
131 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h36 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], in onDrawPatch()
63 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas() argument
DSkiaBehaviorTests.cpp49 SkColor observedColor; in TEST()
/frameworks/base/libs/hwui/jni/
DGIFMovie.cpp37 SkColor fPaintingColor;
307 SkBitmap* backup, SkColor color) in disposeFrameIfNeeded()
393 SkColor bgColor = SkPackARGB32(0, 0, 0, 0); in onGetBitmap()
Dandroid_graphics_ColorSpace.cpp60 SkColor c = SkColorSetARGB(a, r, g, b); in convertColorLong()

12