Home
last modified time | relevance | path

Searched refs:SkColor (Results 1 – 25 of 45) 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.h126 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
130 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
207 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
211 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.cpp385 auto colors = (0 == fs) ? nullptr : pod<SkColor>(this, (xs + ys) * sizeof(int)); in draw()
388 this, (xs + ys) * sizeof(int) + fs * sizeof(SkColor)); in draw()
407 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
421 SkColor colors[4];
489 auto colors = has_colors ? pod<SkColor>(this, count * (sizeof(SkRSXform) + sizeof(SkRect))) in draw()
747 fs * sizeof(SkColor); in drawImageLattice()
765 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch()
778 const SkColor colors[], int count, SkBlendMode xfermode, in drawAtlas()
783 bytes += count * sizeof(SkColor); in drawAtlas()
902 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/native/services/surfaceflinger/
DRefreshRateOverlay.h65 static Buffers draw(int number, SkColor, ui::Transform::RotationFlags, bool showSpinner);
70 static void drawSegment(Segment, int left, SkColor, SkCanvas&);
71 static void drawDigit(int digit, int left, SkColor, SkCanvas&);
DRefreshRateOverlay.cpp68 void RefreshRateOverlay::SevenSegmentDrawer::drawSegment(Segment segment, int left, SkColor color, in drawSegment()
99 void RefreshRateOverlay::SevenSegmentDrawer::drawDigit(int digit, int left, SkColor color, in drawDigit()
124 auto RefreshRateOverlay::SevenSegmentDrawer::draw(int number, SkColor color, in draw()
281 constexpr SkColor kMinFpsColor = SK_ColorRED; in getOrCreateBuffers()
282 constexpr SkColor kMaxFpsColor = SK_ColorGREEN; in getOrCreateBuffers()
293 const SkColor color = colorBase.toSkColor(); in getOrCreateBuffers()
/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
/frameworks/base/libs/hwui/utils/
DColor.h129 Lab sRGBToLab(SkColor color);
130 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);

12