Home
last modified time | relevance | path

Searched refs:SkBlendMode (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/libs/hwui/utils/
DPaintUtils.h46 return mode == SkBlendMode::kSrcOver || mode == SkBlendMode::kSrc; in isOpaquePaint()
55 static inline SkBlendMode getBlendModeDirect(const SkPaint* paint) { in getBlendModeDirect()
56 return paint ? paint->getBlendMode_or(SkBlendMode::kSrcOver) : SkBlendMode::kSrcOver; in getBlendModeDirect()
/frameworks/base/libs/hwui/apex/
Dandroid_paint.cpp35 static SkBlendMode convertBlendMode(ABlendMode blendMode) { in convertBlendMode()
38 return SkBlendMode::kClear; in convertBlendMode()
40 return SkBlendMode::kSrcOver; in convertBlendMode()
42 return SkBlendMode::kSrc; in convertBlendMode()
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp54 SkBlendMode observedMode; in TEST()
57 EXPECT_EQ(SkBlendMode::kModulate, observedMode); in TEST()
68 paint.setBlendMode(SkBlendMode::kOverlay); in TEST()
70 paint.setBlendMode(SkBlendMode::kClear); in TEST()
72 paint.setBlendMode(SkBlendMode::kOverlay); in TEST()
DRenderNodeTests.cpp43 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in TEST()
56 canvas.drawColor(Color::Amber_500, SkBlendMode::kSrcOver); in TEST()
70 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in TEST()
90 canvas.drawColor(Color::Amber_500, SkBlendMode::kSrcOver); in TEST()
106 canvas.drawColor(Color::Amber_500, SkBlendMode::kSrcOver); in TEST()
132 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in TEST()
169 canvas.drawColor(Color::Amber_500, SkBlendMode::kSrcOver); in TEST()
182 canvas.drawColor(Color::Amber_500, SkBlendMode::kSrcOver); in TEST()
195 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in TEST()
285 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in RENDERTHREAD_TEST()
DSkiaPipelineTests.cpp48 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
58 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
80 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
95 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
104 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
117 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
120 surfaceLayer1->getCanvas()->drawColor(SK_ColorWHITE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
128 blueCanvas.drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
131 surfaceLayer2->getCanvas()->drawColor(SK_ColorWHITE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
162 canvas.drawColor(SK_ColorWHITE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DFatalTestCanvas.h39 SkBlendMode, const SkPaint& paint) { in onDrawPatch() argument
62 void onDrawVerticesObject(const SkVertices*, SkBlendMode, const SkPaint&) { in onDrawVerticesObject() argument
66 SkBlendMode, const SkSamplingOptions&, const SkRect* cull, const SkPaint*) { in onDrawAtlas2() argument
/frameworks/base/libs/hwui/pipeline/skia/
DTransformCanvas.h26 enum class SkBlendMode; variable
31 TransformCanvas(SkCanvas* target, SkBlendMode blendmode) : in TransformCanvas()
44 const SkBlendMode mHolePunchBlendMode;
DStretchMask.cpp58 maskCanvas->drawColor(0, SkBlendMode::kClear); in draw()
59 TransformCanvas transformCanvas(maskCanvas, SkBlendMode::kSrcOver); in draw()
70 maskPaint.setBlendMode(SkBlendMode::kDstOut); in draw()
/frameworks/base/libs/hwui/
DLayer.h44 Layer(RenderState& renderState, sk_sp<SkColorFilter>, int alpha, SkBlendMode mode);
64 inline void setAlpha(int alpha, SkBlendMode mode) { in setAlpha()
71 SkBlendMode getMode() const;
134 SkBlendMode mode;
DLayer.cpp31 SkBlendMode mode) in Layer()
51 SkBlendMode Layer::getMode() const { in getMode()
52 if (mBlend || mode != SkBlendMode::kSrcOver) { in getMode()
55 return SkBlendMode::kSrc; in getMode()
DRecordingCanvas.h42 enum class SkBlendMode; variable
175 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
178 void drawVertices(const SkVertices*, SkBlendMode, const SkPaint&);
180 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*);
256 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
259 void onDrawVerticesObject(const SkVertices*, SkBlendMode, const SkPaint&) override;
262 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*) override;
/frameworks/base/libs/hwui/tests/common/scenes/
DPartialDamageAnimation.cpp38 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
46 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent()
61 canvas.drawColor(color, SkBlendMode::kSrcOver); in doFrame()
DClippingAnimation.cpp33 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createContent()
42 canvas.drawColor(Color::Blue_500, SkBlendMode::kSrcOver); in createContent()
51 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in createContent()
DSaveLayerAnimation.cpp34 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); // background in createContent()
39 canvas.drawColor(Color::Green_700, SkBlendMode::kSrcOver); in createContent()
42 canvas.drawColor(Color::Blue_500, SkBlendMode::kSrcOver); in createContent()
DJankyScene.cpp37 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
39 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DHwLayerAnimation.cpp35 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
37 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DHwLayerSizeAnimation.cpp36 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
38 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DRectGridAnimation.cpp33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
37 canvas.drawColor(0xFFFF00FF, SkBlendMode::kSrcOver); in createContent()
DListOfFadedTextAnimation.cpp34 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createListItem()
55 fadingPaint.setBlendMode(SkBlendMode::kDstOut); in createListItem()
DShadowGridAnimation.cpp33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
63 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
DShadowGrid2Animation.cpp33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
63 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
DSaveLayer2Animation.cpp37 canvas.drawColor(SkColorSetARGB(255, 255, 0, 0), SkBlendMode::kSrcOver); in createContent()
52 canvas.drawColor(SkColorSetARGB(255, 255, 255, 0), SkBlendMode::kSrcOver); in createContent()
/frameworks/base/libs/hwui/tests/common/
DCallCountingCanvas.h22 enum class SkBlendMode; variable
101 const SkPoint texCoords[4], SkBlendMode mode, in onDrawPatch()
132 const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions&, in onDrawAtlas2()
159 void onDrawVerticesObject (const SkVertices *vertices, SkBlendMode mode, in onDrawVerticesObject()
/frameworks/base/libs/hwui/jni/
DPaint.cpp831 static_assert(0 == static_cast<int>(SkBlendMode::kClear), "xfermode_mismatch"); in setXfermode()
832 static_assert(1 == static_cast<int>(SkBlendMode::kSrc), "xfermode_mismatch"); in setXfermode()
833 static_assert(2 == static_cast<int>(SkBlendMode::kDst), "xfermode_mismatch"); in setXfermode()
834 static_assert(3 == static_cast<int>(SkBlendMode::kSrcOver), "xfermode_mismatch"); in setXfermode()
835 static_assert(4 == static_cast<int>(SkBlendMode::kDstOver), "xfermode_mismatch"); in setXfermode()
836 static_assert(5 == static_cast<int>(SkBlendMode::kSrcIn), "xfermode_mismatch"); in setXfermode()
837 static_assert(6 == static_cast<int>(SkBlendMode::kDstIn), "xfermode_mismatch"); in setXfermode()
838 static_assert(7 == static_cast<int>(SkBlendMode::kSrcOut), "xfermode_mismatch"); in setXfermode()
839 static_assert(8 == static_cast<int>(SkBlendMode::kDstOut), "xfermode_mismatch"); in setXfermode()
840 static_assert(9 == static_cast<int>(SkBlendMode::kSrcATop), "xfermode_mismatch"); in setXfermode()
[all …]
DColorFilter.cpp39 SkBlendMode mode = static_cast<SkBlendMode>(modeHandle); in CreateBlendModeFilter()

123