Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 8c77eeb6ac94d574a75642fa40b7c041a137d2bb..63f2d7e8f93b943d4ed8fc4d5d6b9304a4ba0117 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -129,10 +129,10 @@ SkPicturePlayback::SkPicturePlayback(const SkPicture* picture, |
picture->initForPlayback(); |
- const SkTDArray<SkPicture* >& pictures = record.getPictureRefs(); |
+ const SkTDArray<const SkPicture* >& pictures = record.getPictureRefs(); |
fPictureCount = pictures.count(); |
if (fPictureCount > 0) { |
- fPictureRefs = SkNEW_ARRAY(SkPicture*, fPictureCount); |
+ fPictureRefs = SkNEW_ARRAY(const SkPicture*, fPictureCount); |
for (int i = 0; i < fPictureCount; i++) { |
if (deepCopy) { |
fPictureRefs[i] = pictures[i]->clone(); |
@@ -210,7 +210,7 @@ SkPicturePlayback::SkPicturePlayback(const SkPicture* picture, const SkPicturePl |
} |
fPictureCount = src.fPictureCount; |
- fPictureRefs = SkNEW_ARRAY(SkPicture*, fPictureCount); |
+ fPictureRefs = SkNEW_ARRAY(const SkPicture*, fPictureCount); |
for (int i = 0; i < fPictureCount; i++) { |
if (deepCopyInfo) { |
fPictureRefs[i] = src.fPictureRefs[i]->clone(); |
@@ -505,7 +505,7 @@ bool SkPicturePlayback::parseStreamTag(SkPicture* picture, |
} break; |
case SK_PICT_PICTURE_TAG: { |
fPictureCount = size; |
- fPictureRefs = SkNEW_ARRAY(SkPicture*, fPictureCount); |
+ fPictureRefs = SkNEW_ARRAY(const SkPicture*, fPictureCount); |
bool success = true; |
int i = 0; |
for ( ; i < fPictureCount; i++) { |
@@ -590,7 +590,7 @@ bool SkPicturePlayback::parseBufferTag(SkPicture* picture, |
return false; |
} |
fPictureCount = size; |
- fPictureRefs = SkNEW_ARRAY(SkPicture*, fPictureCount); |
+ fPictureRefs = SkNEW_ARRAY(const SkPicture*, fPictureCount); |
bool success = true; |
int i = 0; |
for ( ; i < fPictureCount; i++) { |