Actually identify required saveLayers in SkGpuDevice::EXPERIMENTAL_drawPicture
NOTRY=true
R=bsalomon@google.com, rmistry@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/212933002
git-svn-id: http://skia.googlecode.com/svn/trunk@13993 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipData.cpp b/src/gpu/GrClipData.cpp
index 22b4371..40bdec8 100644
--- a/src/gpu/GrClipData.cpp
+++ b/src/gpu/GrClipData.cpp
@@ -18,15 +18,15 @@
* the result of purely intersections of rects (with an initial replace)
* isIntersectionOfRects will be set to true.
*/
-void GrClipData::getConservativeBounds(const GrSurface* surface,
+void GrClipData::getConservativeBounds(int width, int height,
SkIRect* devResult,
bool* isIntersectionOfRects) const {
SkRect devBounds;
fClipStack->getConservativeBounds(-fOrigin.fX,
-fOrigin.fY,
- surface->width(),
- surface->height(),
+ width,
+ height,
&devBounds,
isIntersectionOfRects);