From 84239fb28d87b6fd62150f4f167c8e50f744d6ce Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 10 Dec 2012 16:10:33 +0000 Subject: [PATCH] mark our unflattened bitmap as immutable (just as picture deserialization does) git-svn-id: http://skia.googlecode.com/svn/trunk@6736 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkBitmapProcShader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp index 6ea55bc54d..df2caee2ca 100644 --- a/src/core/SkBitmapProcShader.cpp +++ b/src/core/SkBitmapProcShader.cpp @@ -35,6 +35,7 @@ SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src, SkBitmapProcShader::SkBitmapProcShader(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { buffer.readBitmap(&fRawBitmap); + fRawBitmap.setImmutable(); fState.fTileModeX = buffer.readUInt(); fState.fTileModeY = buffer.readUInt(); fFlags = 0; // computed in setContext