aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLiteDL.cpp
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-09-21 07:11:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 07:11:08 -0700
commit71477bdfb08bed2a6daeac9fc03930dedb68bc2b (patch)
tree702d2db571ecfcf594e8f7a551deaca62b5b0492 /src/core/SkLiteDL.cpp
parent67ba29ce84c464270e8f4ccca6c22d37882a90f4 (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/core/SkLiteDL.cpp')
-rw-r--r--src/core/SkLiteDL.cpp4
1 files changed, 4 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;
+}