diff options
author | 2012-02-24 20:07:08 +0000 | |
---|---|---|
committer | 2012-02-24 20:07:08 +0000 | |
commit | 421bcc375af0616c37a59b0508957ab54d8f6d12 (patch) | |
tree | e80529f6e6aefd08da53b3a4a333431544fad5ce /src/core/SkPictureRecord.cpp | |
parent | ddd0ed560721bc082b38eed7c11ea792ae0713ca (diff) |
Modify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and clipping state
Removed 'virtual' from a few canvas methods that no longer need it thanks to this change.
BUG=http://code.google.com/p/skia/issues/detail?id=506
TEST=Canvas unit test
REVIEW=http://codereview.appspot.com/5697052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3256 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index c56c104ebe..ba49b729de 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -62,7 +62,9 @@ int SkPictureRecord::saveLayer(const SkRect* bounds, const SkPaint* paint, clip starts out the size of the picture, which is often much larger than the size of the actual device we'll use during playback). */ - return this->INHERITED::save(flags); + int count = this->INHERITED::save(flags); + this->clipRectBounds(bounds, flags, NULL); + return count; } bool SkPictureRecord::isDrawingToLayer() const { |