Add setBounds to SkLiteDL for Android The RootRenderNode in Android is changing bounds dynamically. This is a temporary fix to accomodate that behaviour. (See also b/31304115) BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2358793002 Review-Url: https://codereview.chromium.org/2358793002
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index 3175447..8e64ae0 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp
@@ -829,3 +829,7 @@ return fallback_plan(); } + +void SkLiteDL::setBounds(const SkRect& bounds) { + fBounds = bounds; +}
diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h index b18cc54..9ed1365 100644 --- a/src/core/SkLiteDL.h +++ b/src/core/SkLiteDL.h
@@ -91,6 +91,8 @@ void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int, SkXfermode::Mode, const SkRect*, const SkPaint*); + void setBounds(const SkRect& bounds); + private: SkLiteDL(SkRect); ~SkLiteDL();