diff options
author | 2016-09-21 07:11:08 -0700 | |
---|---|---|
committer | 2016-09-21 07:11:08 -0700 | |
commit | 71477bdfb08bed2a6daeac9fc03930dedb68bc2b (patch) | |
tree | 702d2db571ecfcf594e8f7a551deaca62b5b0492 /src | |
parent | 67ba29ce84c464270e8f4ccca6c22d37882a90f4 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkLiteDL.cpp | 4 | ||||
-rw-r--r-- | src/core/SkLiteDL.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index 3175447380..8e64ae0a7d 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp @@ -829,3 +829,7 @@ void SkLiteDL::drawAsLayer(SkCanvas* canvas, const SkMatrix* matrix, const SkPai return fallback_plan(); } + +void SkLiteDL::setBounds(const SkRect& bounds) { + fBounds = bounds; +} diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h index b18cc540dc..9ed1365b70 100644 --- a/src/core/SkLiteDL.h +++ b/src/core/SkLiteDL.h @@ -91,6 +91,8 @@ public: 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(); |