diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-31 17:55:12 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-31 17:55:12 +0000 |
commit | 8ddc26b68c4e41199c06961da3bff2ce72afff14 (patch) | |
tree | c955049c757cda33d6a99709159744fd0a054c2b /include/gpu/GrClipData.h | |
parent | 37dab05d32d095247a01674f1a4bd940c3337369 (diff) |
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
Diffstat (limited to 'include/gpu/GrClipData.h')
-rw-r--r-- | include/gpu/GrClipData.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/gpu/GrClipData.h b/include/gpu/GrClipData.h index bced74183b..b06dc06e51 100644 --- a/include/gpu/GrClipData.h +++ b/include/gpu/GrClipData.h @@ -9,8 +9,8 @@ #define GrClip_DEFINED #include "SkClipStack.h" +#include "GrSurface.h" -class GrSurface; struct SkIRect; /** @@ -48,6 +48,13 @@ public: void getConservativeBounds(const GrSurface* surface, SkIRect* devResult, + bool* isIntersectionOfRects = NULL) const { + this->getConservativeBounds(surface->width(), surface->height(), + devResult, isIntersectionOfRects); + } + + void getConservativeBounds(int width, int height, + SkIRect* devResult, bool* isIntersectionOfRects = NULL) const; }; |