Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index 7762939c5d512a22b15e2e130086867f0f325e2b..b9b2442ecd9b3b0ef47f7ae4e365c862fa0f7bd3 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -193,21 +193,19 @@ SkCanvas* SkPicture::beginRecording(int width, int height, |
SkSafeSetNull(fRecord); |
- SkBitmap bm; |
- bm.setConfig(SkBitmap::kNo_Config, width, height); |
- SkAutoTUnref<SkBaseDevice> dev(SkNEW_ARGS(SkBitmapDevice, (bm))); |
- |
// Must be set before calling createBBoxHierarchy |
fWidth = width; |
fHeight = height; |
+ const SkISize size = SkISize::Make(width, height); |
+ |
if (recordingFlags & kOptimizeForClippedPlayback_RecordingFlag) { |
SkBBoxHierarchy* tree = this->createBBoxHierarchy(); |
SkASSERT(NULL != tree); |
- fRecord = SkNEW_ARGS(SkBBoxHierarchyRecord, (recordingFlags, tree, dev)); |
+ fRecord = SkNEW_ARGS(SkBBoxHierarchyRecord, (size, recordingFlags, tree)); |
tree->unref(); |
} else { |
- fRecord = SkNEW_ARGS(SkPictureRecord, (recordingFlags, dev)); |
+ fRecord = SkNEW_ARGS(SkPictureRecord, (size, recordingFlags)); |
} |
fRecord->beginRecording(); |