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
This commit is contained in:
reed@google.com 2012-12-10 16:10:33 +00:00
parent 5a34fd3f98
commit 84239fb28d

View File

@ -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