aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-10-02 16:37:46 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-10-02 16:37:46 +0000
commit261ae4df7282f5dd39937748b0da7e822b66a083 (patch)
tree4632a0ebf7ef46f008824b1675c3e8b49a0900dc /src
parent1fc4c605def61d9e10489f9cd63dc378baa6ade3 (diff)
oops, restore previous fix to saveLayer calling through to save()
git-svn-id: http://skia.googlecode.com/svn/trunk@375 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPictureRecord.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index c7f2c6c041..b565fc11a8 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -45,7 +45,13 @@ int SkPictureRecord::saveLayer(const SkRect* bounds, const SkPaint* paint,
fRestoreOffsetStack.push(0);
validate();
- return this->INHERITED::saveLayer(bounds, paint, flags);
+ /* Don't actually call saveLayer, because that will try to allocate an
+ offscreen device (potentially very big) which we don't actually need
+ at this time (and may not be able to afford since during record our
+ 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);
}
void SkPictureRecord::restore() {