/frameworks/base/libs/hwui/ |
D | Layer.cpp | 26 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()
|
D | Layer.h | 43 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;
|
D | RecordingCanvas.h | 114 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;
|
D | DeferredLayerUpdater.h | 114 SkBlendMode mMode = SkBlendMode::kSrcOver;
|
/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 52 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/ |
D | SkiaBehaviorTests.cpp | 50 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()
|
D | SkiaPipelineTests.cpp | 45 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 …]
|
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() 281 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in RENDERTHREAD_TEST()
|
D | FatalTestCanvas.h | 37 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/ |
D | Paint.cpp | 802 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 …]
|
D | ColorFilter.cpp | 40 SkBlendMode mode = static_cast<SkBlendMode>(modeHandle); in CreateBlendModeFilter()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | SaveLayerAnimation.cpp | 32 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()
|
D | ClippingAnimation.cpp | 31 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()
|
D | PartialDamageAnimation.cpp | 36 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 44 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent() 59 canvas.drawColor(color, SkBlendMode::kSrcOver); in doFrame()
|
D | JankyScene.cpp | 35 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 37 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | HwLayerSizeAnimation.cpp | 34 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 36 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | HwLayerAnimation.cpp | 33 canvas.drawColor(0xFF0000FF, SkBlendMode::kSrcOver); in createContent() 35 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); // background in createContent()
|
D | RectGridAnimation.cpp | 31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 35 canvas.drawColor(0xFFFF00FF, SkBlendMode::kSrcOver); in createContent()
|
D | ListOfFadedTextAnimation.cpp | 33 canvas.drawColor(Color::White, SkBlendMode::kSrcOver); in createListItem() 54 fadingPaint.setBlendMode(SkBlendMode::kDstOut); in createListItem()
|
D | ShadowGrid2Animation.cpp | 31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 61 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
|
D | ShadowGridAnimation.cpp | 31 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 61 canvas.drawColor(0xFFEEEEEE, SkBlendMode::kSrcOver); in createCard()
|
D | RoundRectClippingAnimation.cpp | 29 canvas.drawColor(0xFFFFFFFF, SkBlendMode::kSrcOver); in createContent() 38 canvas.drawColor(color, SkBlendMode::kSrcOver); in createContent()
|
D | SaveLayer2Animation.cpp | 36 canvas.drawColor(SkColorSetARGB(255, 255, 0, 0), SkBlendMode::kSrcOver); in createContent() 52 canvas.drawColor(SkColorSetARGB(255, 255, 255, 0), SkBlendMode::kSrcOver); in createContent()
|
D | HwBitmapInCompositeShader.cpp | 34 canvas.drawColor(Color::Red_500, SkBlendMode::kSrcOver); in createContent() 66 SkShader::MakeComposeShader(hardwareShader, gradientShader, SkBlendMode::kDstATop)); in createContent()
|
D | TvApp.cpp | 118 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()
|