Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2d08ac8 authored by Mike Reed's avatar Mike Reed
Browse files

drawBitmapRect is deprecated, use images

Test: make

Change-Id: I04eaacd25ca6184b57f7b50527758a7ea6b46905
parent 6ba51b0c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1183,6 +1183,20 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(SkiaRecordingCanvas, drawVectorDrawable) {
                    ADD_FAILURE();
            }
        }
        void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
                              const SkPaint* paint, SrcRectConstraint constraint) override {
            const int index = mDrawCounter++;
            switch (index) {
                case 0:
                    EXPECT_EQ(dst, SkRect::MakeWH(CANVAS_WIDTH, CANVAS_HEIGHT));
                    break;
                case 1:
                    EXPECT_EQ(dst, SkRect::MakeWH(CANVAS_WIDTH / 2, CANVAS_HEIGHT));
                    break;
                default:
                    ADD_FAILURE();
            }
        }
    };

    VectorDrawable::Group* group = new VectorDrawable::Group();