diff options
-rw-r--r-- | src/core/SkPicturePlayback.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp index b1b51122cf..d0a29d3c9d 100644 --- a/src/core/SkPicturePlayback.cpp +++ b/src/core/SkPicturePlayback.cpp @@ -505,7 +505,9 @@ bool SkPicturePlayback::parseBufferTag(SkOrderedReadBuffer& buffer, case PICT_BITMAP_BUFFER_TAG: { fBitmaps = SkTRefArray<SkBitmap>::Create(size); for (size_t i = 0; i < size; ++i) { - buffer.readBitmap(&fBitmaps->writableAt(i)); + SkBitmap* bm = &fBitmaps->writableAt(i); + buffer.readBitmap(bm); + bm->setImmutable(); } } break; case PICT_MATRIX_BUFFER_TAG: |