From 831c726f83ab3146a573f483438c1a461b2ba465 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Thu, 25 Oct 2012 14:45:08 +0000 Subject: Correctly set width & height in filtered SkPictures https://codereview.appspot.com/6772047/ git-svn-id: http://skia.googlecode.com/svn/trunk@6103 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkPicture.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/core') diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index f70fd3fbc4..c7ae7757c4 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -148,12 +148,13 @@ public: void abortPlayback(); protected: - // fRecord is protected to allow derived classes to install their own - // SkPictureRecord-derived recorders. + // fRecord and fWidth & fHeight are protected to allow derived classes to + // install their own SkPictureRecord-derived recorders and set the picture + // size SkPictureRecord* fRecord; + int fWidth, fHeight; private: - int fWidth, fHeight; SkPicturePlayback* fPlayback; /** Used by the R-Tree when kOptimizeForClippedPlayback_RecordingFlag is -- cgit v1.2.3