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

Commit 5ecd3d17 authored by Mike Reed's avatar Mike Reed Committed by Android (Google) Code Review
Browse files

Merge "only check the image virtual, now the the bitmap one is gone"

parents 914f4cf0 ec9eecd0
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -1169,20 +1169,6 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(SkiaRecordingCanvas, drawVectorDrawable) {
    class VectorDrawableTestCanvas : public TestCanvasBase {
    public:
        VectorDrawableTestCanvas() : TestCanvasBase(CANVAS_WIDTH, CANVAS_HEIGHT) {}
        void onDrawBitmapRect(const SkBitmap& bitmap, 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();
            }
        }
        void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
                              const SkPaint* paint, SrcRectConstraint constraint) override {
            const int index = mDrawCounter++;