aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-11 08:08:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-11 08:08:43 -0700
commit5ad6ee1b2ce54f8e59b9f5a337c688a98a4b0f2a (patch)
treef1198834aac166b6c3d9f79e056e0f2364c65d7e /include/core/SkPicture.h
parent136aa8fb7e8e00e0a7eed0c721fab070949222ad (diff)
Plumbing for using a BBH in SkRecordDraw.
For now this only creates a degenerate bounding box hierarchy where all ops just have maximal bounds. I will flesh out FillBounds in future CL(s). Not quite sure why QuadTree and TileGrid aren't drawing right---haven't even looked at the diffs yet---so I've disabled those test modes for now. RTree seems fine, so that'll at least get us coverage for all this new plumbing. BUG=skia: R=robertphillips@google.com, mtklein@google.com, reed@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/454123003
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index c733e532c2..e3b33e9438 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -20,7 +20,6 @@
class GrContext;
#endif
-class SkBBHFactory;
class SkBBoxHierarchy;
class SkCanvas;
class SkData;
@@ -289,8 +288,11 @@ private:
typedef SkRefCnt INHERITED;
- SkPicture(int width, int height, SkRecord*); // Takes ownership.
- SkAutoTDelete<SkRecord> fRecord;
+ // Takes ownership of the SkRecord, refs the (optional) BBH.
+ SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
+
+ SkAutoTDelete<SkRecord> fRecord;
+ SkAutoTUnref<SkBBoxHierarchy> fBBH;
bool fRecordWillPlayBackBitmaps; // TODO: const
};