/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 46 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/ |
D | android_paint.cpp | 35 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/ |
D | SkiaBehaviorTests.cpp | 54 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()
|
D | RenderNodeTests.cpp | 43 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()
|
D | SkiaPipelineTests.cpp | 48 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 …]
|
D | FatalTestCanvas.h | 39 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/ |
D | TransformCanvas.h | 26 enum class SkBlendMode; variable 31 TransformCanvas(SkCanvas* target, SkBlendMode blendmode) : in TransformCanvas() 44 const SkBlendMode mHolePunchBlendMode;
|
D | StretchMask.cpp | 58 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/ |
D | Layer.h | 44 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;
|
D | Layer.cpp | 31 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()
|
D | RecordingCanvas.h | 42 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/ |
D | PartialDamageAnimation.cpp | 38 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 46 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent() 61 canvas.drawColor(color, SkBlendMode::kSrcOver); in doFrame()
|
D | ClippingAnimation.cpp | 33 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()
|
D | SaveLayerAnimation.cpp | 34 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()
|
D | JankyScene.cpp | 37 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 39 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | HwLayerAnimation.cpp | 35 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 37 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | HwLayerSizeAnimation.cpp | 36 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 38 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | RectGridAnimation.cpp | 33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 37 canvas.drawColor(0xFFFF00FF, SkBlendMode::kSrcOver); in createContent()
|
D | ListOfFadedTextAnimation.cpp | 34 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createListItem() 55 fadingPaint.setBlendMode(SkBlendMode::kDstOut); in createListItem()
|
D | ShadowGridAnimation.cpp | 33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 63 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
|
D | ShadowGrid2Animation.cpp | 33 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 63 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
|
D | SaveLayer2Animation.cpp | 37 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/ |
D | CallCountingCanvas.h | 22 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/ |
D | Paint.cpp | 831 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 …]
|
D | ColorFilter.cpp | 39 SkBlendMode mode = static_cast<SkBlendMode>(modeHandle); in CreateBlendModeFilter()
|