Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/
DCanvasTransform.cpp34 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()
DPropertyValuesHolder.h52 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);
DCanvasTransform.h45 SkColor transformColor(ColorTransform transform, SkColor color);
46 SkColor transformColorInverse(ColorTransform transform, SkColor color);
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.h531 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;
DFrameInfoVisualizer.cpp37 SkColor color;
46 static constexpr SkColor BAR_FAST_MASK = 0x8FFFFFFF;
47 static constexpr SkColor BAR_JANKY_MASK = 0xDFFFFFFF;
52 SkColor color;
DRecordingCanvas.h125 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,
DNinePatchUtils.h57 int numFlags, const Res_png_9patch& chunk, SkColor* colors) { in SetLatticeFlags()
61 sk_bzero(colors, numFlags * sizeof(SkColor)); in SetLatticeFlags()
DRecordingCanvas.cpp376 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 …]
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()
DSimpleColorMatrixAnimation.cpp68 SkColor colors[2] = {Color::DeepPurple_500, Color::DeepOrange_500}; in createCard()
DHwBitmapInCompositeShader.cpp59 SkColor colors[2]; in createContent()
DBitmapFillrate.cpp56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode()
/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()
DCallCountingCanvas.h98 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
130 const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions&, in onDrawAtlas2()
DTestUtils.h271 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/
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/tests/unit/
DFatalTestCanvas.h36 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
DSkiaBehaviorTests.cpp48 SkColor observedColor; in TEST()
/frameworks/base/libs/hwui/utils/
DColor.h127 Lab sRGBToLab(SkColor color);
128 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
/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()

12