diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-10 16:10:33 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-10 16:10:33 +0000 |
commit | 84239fb28d87b6fd62150f4f167c8e50f744d6ce (patch) | |
tree | dcca9df509b06de41aa40cd095aa5b7cf98f5c53 /src | |
parent | 5a34fd3f9876174aea8b22e1b585b4244e71b0b1 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBitmapProcShader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |