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:
parent
5a34fd3f98
commit
84239fb28d
@ -35,6 +35,7 @@ SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src,
|
|||||||
SkBitmapProcShader::SkBitmapProcShader(SkFlattenableReadBuffer& buffer)
|
SkBitmapProcShader::SkBitmapProcShader(SkFlattenableReadBuffer& buffer)
|
||||||
: INHERITED(buffer) {
|
: INHERITED(buffer) {
|
||||||
buffer.readBitmap(&fRawBitmap);
|
buffer.readBitmap(&fRawBitmap);
|
||||||
|
fRawBitmap.setImmutable();
|
||||||
fState.fTileModeX = buffer.readUInt();
|
fState.fTileModeX = buffer.readUInt();
|
||||||
fState.fTileModeY = buffer.readUInt();
|
fState.fTileModeY = buffer.readUInt();
|
||||||
fFlags = 0; // computed in setContext
|
fFlags = 0; // computed in setContext
|
||||||
|
Loading…
Reference in New Issue
Block a user