aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-11-19 06:59:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-19 06:59:41 -0800
commit7e76bff26e7c74902841ca4f607eb0b24a833a4a (patch)
treecb2f55b88a3ec2b3838dc9003808af03b6700e1d /include/core/SkPicture.h
parentec03a4608025106ea3f21353865c7d302c0a13c6 (diff)
allow pictures to have a full bounds
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 99bca367d9..c69db37ffa 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -130,7 +130,7 @@ public:
It does not necessarily reflect the bounds of what has been recorded into the picture.
@return the cull rect used to create this picture
*/
- const SkRect cullRect() const { return SkRect::MakeWH(fCullWidth, fCullHeight); }
+ SkRect cullRect() const { return fCullRect; }
/** Return a non-zero, unique value representing the picture. This call is
only valid when not recording. Between a beginRecording/endRecording
@@ -260,15 +260,14 @@ private:
static bool IsValidPictInfo(const SkPictInfo& info);
// Takes ownership of the SkRecord, refs the (optional) drawablePicts and BBH.
- SkPicture(SkScalar width, SkScalar height, SkRecord*, SkData* drawablePicts,
+ SkPicture(const SkRect& cullRect, SkRecord*, SkData* drawablePicts,
SkBBoxHierarchy*);
static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*);
static SkPictureData* Backport(const SkRecord&, const SkPictInfo&,
SkPicture const* const drawablePics[], int drawableCount);
- const SkScalar fCullWidth;
- const SkScalar fCullHeight;
+ const SkRect fCullRect;
mutable SkAutoTUnref<const AccelData> fAccelData;
mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are refed
SkAutoTDelete<SkRecord> fRecord;