Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/
DLayer.cpp26 SkBlendMode mode) in Layer()
47 SkBlendMode Layer::getMode() const { in getMode()
48 if (mBlend || mode != SkBlendMode::kSrcOver) { in getMode()
51 return SkBlendMode::kSrc; in getMode()
DLayer.h43 Layer(RenderState& renderState, sk_sp<SkColorFilter>, int alpha, SkBlendMode mode);
63 inline void setAlpha(int alpha, SkBlendMode mode) { in setAlpha()
70 SkBlendMode getMode() const;
113 SkBlendMode mode;
DRecordingCanvas.h114 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
117 void drawVertices(const SkVertices*, const SkVertices::Bone bones[], int boneCount, SkBlendMode,
120 SkBlendMode, const SkRect*, const SkPaint*);
197 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
201 SkBlendMode, const SkPaint&) override;
203 SkBlendMode, const SkRect*, const SkPaint*) override;
DDeferredLayerUpdater.h114 SkBlendMode mMode = SkBlendMode::kSrcOver;
/frameworks/base/libs/hwui/utils/
DPaintUtils.h52 SkBlendMode mode = paint->getBlendMode(); in isOpaquePaint()
53 return mode == SkBlendMode::kSrcOver || mode == SkBlendMode::kSrc; in isOpaquePaint()
93 static inline SkBlendMode getBlendModeDirect(const SkPaint* paint) { in getBlendModeDirect()
94 return paint ? paint->getBlendMode() : SkBlendMode::kSrcOver; in getBlendModeDirect()
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp50 SkBlendMode observedMode; in TEST()
53 EXPECT_EQ(SkBlendMode::kModulate, observedMode); in TEST()
64 paint.setBlendMode(SkBlendMode::kOverlay); in TEST()
66 paint.setBlendMode(SkBlendMode::kClear); in TEST()
68 paint.setBlendMode(SkBlendMode::kOverlay); in TEST()
DSkiaPipelineTests.cpp45 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
55 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
65 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
86 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
110 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
125 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
134 surface->getCanvas()->drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
147 redCanvas.drawColor(SK_ColorRED, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
150 surfaceLayer1->getCanvas()->drawColor(SK_ColorWHITE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
158 blueCanvas.drawColor(SK_ColorBLUE, SkBlendMode::kSrcOver); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
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()
281 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in RENDERTHREAD_TEST()
DFatalTestCanvas.h37 SkBlendMode, const SkPaint& paint) { in onDrawPatch() argument
60 void onDrawVerticesObject(const SkVertices*, SkBlendMode, const SkPaint&) { in onDrawVerticesObject() argument
64 SkBlendMode, const SkRect* cull, const SkPaint*) { in onDrawAtlas() argument
/frameworks/base/core/jni/android/graphics/
DPaint.cpp802 static_assert(0 == static_cast<int>(SkBlendMode::kClear), "xfermode_mismatch"); in setXfermode()
803 static_assert(1 == static_cast<int>(SkBlendMode::kSrc), "xfermode_mismatch"); in setXfermode()
804 static_assert(2 == static_cast<int>(SkBlendMode::kDst), "xfermode_mismatch"); in setXfermode()
805 static_assert(3 == static_cast<int>(SkBlendMode::kSrcOver), "xfermode_mismatch"); in setXfermode()
806 static_assert(4 == static_cast<int>(SkBlendMode::kDstOver), "xfermode_mismatch"); in setXfermode()
807 static_assert(5 == static_cast<int>(SkBlendMode::kSrcIn), "xfermode_mismatch"); in setXfermode()
808 static_assert(6 == static_cast<int>(SkBlendMode::kDstIn), "xfermode_mismatch"); in setXfermode()
809 static_assert(7 == static_cast<int>(SkBlendMode::kSrcOut), "xfermode_mismatch"); in setXfermode()
810 static_assert(8 == static_cast<int>(SkBlendMode::kDstOut), "xfermode_mismatch"); in setXfermode()
811 static_assert(9 == static_cast<int>(SkBlendMode::kSrcATop), "xfermode_mismatch"); in setXfermode()
[all …]
DColorFilter.cpp40 SkBlendMode mode = static_cast<SkBlendMode>(modeHandle); in CreateBlendModeFilter()
/frameworks/base/libs/hwui/tests/common/scenes/
DSaveLayerAnimation.cpp32 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); // background in createContent()
37 canvas.drawColor(Color::Green_700, SkBlendMode::kSrcOver); in createContent()
40 canvas.drawColor(Color::Blue_500, SkBlendMode::kSrcOver); in createContent()
DClippingAnimation.cpp31 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createContent()
40 canvas.drawColor(Color::Blue_500, SkBlendMode::kSrcOver); in createContent()
49 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in createContent()
DPartialDamageAnimation.cpp36 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
44 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent()
59 canvas.drawColor(color, SkBlendMode::kSrcOver); in doFrame()
DJankyScene.cpp35 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
37 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DHwLayerSizeAnimation.cpp34 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
36 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DHwLayerAnimation.cpp33 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent()
35 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
DRectGridAnimation.cpp31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
35 canvas.drawColor(0xFFFF00FF, SkBlendMode::kSrcOver); in createContent()
DListOfFadedTextAnimation.cpp33 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createListItem()
54 fadingPaint.setBlendMode(SkBlendMode::kDstOut); in createListItem()
DShadowGrid2Animation.cpp31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
61 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
DShadowGridAnimation.cpp31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
61 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
DRoundRectClippingAnimation.cpp29 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent()
38 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent()
DSaveLayer2Animation.cpp36 canvas.drawColor(SkColorSetARGB(255, 255, 0, 0), SkBlendMode::kSrcOver); in createContent()
52 canvas.drawColor(SkColorSetARGB(255, 255, 255, 0), SkBlendMode::kSrcOver); in createContent()
DHwBitmapInCompositeShader.cpp34 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in createContent()
66 SkShader::MakeComposeShader(hardwareShader, gradientShader, SkBlendMode::kDstATop)); in createContent()
DTvApp.cpp118 canvas.drawColor(0xFFFFEEEE, SkBlendMode::kSrcOver); in createInfoNode()
136 canvas.drawColor(color, SkBlendMode::kSrcOver); in createColorNode()
212 canvas->drawColor((curFrame % 150) << 24, SkBlendMode::kSrcOver); in updateCard()
222 SkColorFilter::MakeModeFilter((curFrame % 150) << 24, SkBlendMode::kSrcATop)); in updateCard()

123