[go: nahoru, domu]

add picture-record option to speedup complex clips
remove hack that stopped picture-playback from culling on clipPath() result



git-svn-id: http://skia.googlecode.com/svn/trunk/src@92 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/core/SkPicture.cpp b/core/SkPicture.cpp
index 07cb0a6..343ca2b 100644
--- a/core/SkPicture.cpp
+++ b/core/SkPicture.cpp
@@ -146,7 +146,8 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 
-SkCanvas* SkPicture::beginRecording(int width, int height) {
+SkCanvas* SkPicture::beginRecording(int width, int height,
+                                    uint32_t recordingFlags) {
     if (fPlayback) {
         SkDELETE(fPlayback);
         fPlayback = NULL;
@@ -157,7 +158,7 @@
         fRecord = NULL;
     }
 
-    fRecord = SkNEW(SkPictureRecord);
+    fRecord = SkNEW_ARGS(SkPictureRecord, (recordingFlags));
 
     fWidth = width;
     fHeight = height;