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

Commit 1b4068d9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove code guarded by SK_SURFACE_COPY_ON_WRITE_CRASHES"

parents 9a23c4f0 b8752a73
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -469,11 +469,7 @@ RENDERTHREAD_SKIA_PIPELINE_TEST(RenderNodeDrawable, projectionHwLayer) {
        }
        SkCanvas* onNewCanvas() override { return new ProjectionTestCanvas(mDrawCounter); }
        sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; }
#ifdef SK_SURFACE_COPY_ON_WRITE_CRASHES
        void onCopyOnWrite(ContentChangeMode) override {}
#else
        bool onCopyOnWrite(ContentChangeMode) override { return true; }
#endif
        int* mDrawCounter;
        void onWritePixels(const SkPixmap&, int x, int y) {}
    };
+0 −4
Original line number Diff line number Diff line
@@ -221,11 +221,7 @@ public:
    sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override { return nullptr; }
    sk_sp<SkImage> onNewImageSnapshot(const SkIRect* bounds) override { return nullptr; }
    T* canvas() { return static_cast<T*>(getCanvas()); }
#ifdef SK_SURFACE_COPY_ON_WRITE_CRASHES
    void onCopyOnWrite(ContentChangeMode) override {}
#else
    bool onCopyOnWrite(ContentChangeMode) override { return true; }
#endif
    void onWritePixels(const SkPixmap&, int x, int y) override {}
};
}