Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/libs/hwui/
H A DCanvasTransform.cpp36 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()
83 SkColor newColor = transformColor(transform, paint.getColor()); in applyColorTransform()
88 std::array<SkColor, 10> _colorStorage; in applyColorTransform()
107 SkColor color; in applyColorTransform()
116 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV()
127 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette()
H A 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);
H A DCanvasTransform.h45 SkColor transformColor(ColorTransform transform, SkColor color);
46 SkColor transformColorInverse(ColorTransform transform, SkColor color);
H A DPropertyValuesHolder.cpp38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, in evaluate()
93 SkColor animatedValue = calculateAnimatedValue(fraction); in setFraction()
H A DVectorDrawable.h124 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 …]
H A 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;
H A DFrameInfoVisualizer.cpp37 SkColor color;
46 static constexpr SkColor BAR_FAST_MASK = 0x8FFFFFFF;
47 static constexpr SkColor BAR_JANKY_MASK = 0xDFFFFFFF;
52 SkColor color;
H A DRecordingCanvas.h175 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
179 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
256 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
261 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
H A DNinePatchUtils.h57 int numFlags, const Res_png_9patch& chunk, SkColor* colors) { in SetLatticeFlags()
61 sk_bzero(colors, numFlags * sizeof(SkColor)); in SetLatticeFlags()
H A DRecordingCanvas.cpp438 auto colors = (0 == fs) ? nullptr : pod<SkColor>(this, (xs + ys) * sizeof(int)); in draw()
462 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
476 SkColor colors[4];
598 auto colors = has_colors ? pod<SkColor>(this, count * (sizeof(SkRSXform) + sizeof(SkRect))) in draw()
859 fs * sizeof(SkColor); in drawImageLattice()
877 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch()
898 const SkColor colors[], int count, SkBlendMode xfermode, in drawAtlas()
903 bytes += count * sizeof(SkColor); in drawAtlas()
1022 SkColor color = transformColorInverse(transform, op->mParams.color); in colorTransformForOp()
1224 void RecordingCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
[all …]
H A DVectorDrawable.cpp151 inline SkColor applyAlpha(SkColor color, float alpha) { in applyAlpha()
215 static_assert(sizeof(SkColor) == sizeof(int32_t), "SkColor is not the same size as int32_t");
600 mRootNode->forEachFillColor([&](SkColor color) { in computePalette()
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/
H A DPartialDamageAnimation.cpp34 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()
H A DListOfFadedTextAnimation.cpp46 SkColor colors[2] = {Color::Black, Color::Transparent}; in createListItem()
H A DSimpleGradientAnimation.cpp59 SkColor colors[3] = {Color::Transparent, Color::Black, Color::Cyan_500}; in createCard()
H A DSimpleColorMatrixAnimation.cpp70 SkColor colors[2] = {Color::DeepPurple_500, Color::DeepOrange_500}; in createCard()
H A DHwBitmapInCompositeShader.cpp61 SkColor colors[2]; in createContent()
H A DBitmapFillrate.cpp57 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode()
/aosp14/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp43 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { in interpolateColor()
128 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor()
H A DTestUtils.h284 static SkColor interpolateColor(float fraction, SkColor start, SkColor end);
294 static SkColor getColor(const sk_sp<SkSurface>& surface, int x, int y);
H A DCallCountingCanvas.h100 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
132 const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions&, in onDrawAtlas2()
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DReorderBarrierDrawables.cpp128 static SkColor multiplyAlpha(SkColor color, float alpha) { in multiplyAlpha()
213 SkColor ambientColor = multiplyAlpha(casterProperties.getAmbientShadowColor(), ambientAlpha); in drawShadow()
214 SkColor spotColor = multiplyAlpha(casterProperties.getSpotShadowColor(), spotAlpha); in drawShadow()
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DFatalTestCanvas.h38 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
H A DSkiaBehaviorTests.cpp53 SkColor observedColor; in TEST()
/aosp14/frameworks/base/libs/hwui/utils/
H A DColor.h130 Lab sRGBToLab(SkColor color);
131 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
/aosp14/frameworks/base/libs/hwui/jni/
H A DGIFMovie.cpp41 SkColor fPaintingColor;
312 SkBitmap* backup, SkColor color) in disposeFrameIfNeeded()
398 SkColor bgColor = SkPackARGB32(0, 0, 0, 0); in onGetBitmap()

12