summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2017-01-25 08:23:25 -0500
committerMike Reed <reed@google.com>2017-01-25 13:26:41 +0000
commit5e4389823191aafff7422561f134dbdb391e0a2d (patch)
tree6b5be73aeb4cdcfed028451c238a4c5d8a140071 /libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
parent2bf3b1b2cf7cb32f9dd7f03fefc4393908b820fc (diff)
use new clipbounds api
Allows us to remove SK_SUPPORT_LEGACY_GETCLIPBOUNDS flag Change-Id: I7c6665b4eb67c58fe747c07b8b87d58fe9b10120
Diffstat (limited to 'libs/hwui/pipeline/skia/GLFunctorDrawable.cpp')
-rw-r--r--libs/hwui/pipeline/skia/GLFunctorDrawable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
index 6ca8d8bbff8a..ea302a154616 100644
--- a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
+++ b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
@@ -59,8 +59,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
SkImageInfo canvasInfo = canvas->imageInfo();
SkMatrix44 mat4(canvas->getTotalMatrix());
- SkIRect ibounds;
- canvas->getClipDeviceBounds(&ibounds);
+ SkIRect ibounds = canvas->getDeviceClipBounds();
DrawGlInfo info;
info.clipLeft = ibounds.fLeft;