commit | 5e4389823191aafff7422561f134dbdb391e0a2d | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Wed Jan 25 08:23:25 2017 -0500 |
committer | Mike Reed <reed@google.com> | Wed Jan 25 13:26:41 2017 +0000 |
tree | 6b5be73aeb4cdcfed028451c238a4c5d8a140071 | |
parent | 2bf3b1b2cf7cb32f9dd7f03fefc4393908b820fc [diff] [blame] |
use new clipbounds api Allows us to remove SK_SUPPORT_LEGACY_GETCLIPBOUNDS flag Change-Id: I7c6665b4eb67c58fe747c07b8b87d58fe9b10120
diff --git a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp index 6ca8d8b..ea302a1 100644 --- a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp +++ b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
@@ -59,8 +59,7 @@ SkImageInfo canvasInfo = canvas->imageInfo(); SkMatrix44 mat4(canvas->getTotalMatrix()); - SkIRect ibounds; - canvas->getClipDeviceBounds(&ibounds); + SkIRect ibounds = canvas->getDeviceClipBounds(); DrawGlInfo info; info.clipLeft = ibounds.fLeft;