aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkReadBuffer.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-05-20 12:05:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-20 12:05:15 -0700
commit76be9c8dc0e5306ef81c2987848088cdec7ccd3f (patch)
treef7e18d343908a8c8e9e94e45dbf26572c421b1ff /src/core/SkReadBuffer.h
parent364ad00446923d1cbc963c7358cd9b01efc53d3e (diff)
Don't serialize SkPictures in SkPictureShaders when in untrusted mode.
This requires we "first" add a has-picture bool to SkPictureShader serialized format. BUG=chromium:486947, billions and billions of others. Review URL: https://codereview.chromium.org/1151663002
Diffstat (limited to 'src/core/SkReadBuffer.h')
-rw-r--r--src/core/SkReadBuffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h
index 1299edaf82..ba47835daf 100644
--- a/src/core/SkReadBuffer.h
+++ b/src/core/SkReadBuffer.h
@@ -56,7 +56,8 @@ public:
kPictureImageFilterResolution_Version = 38,
kPictureImageFilterLevel_Version = 39,
kImageFilterNoUniqueID_Version = 40,
- kBitmapSourceFilterQuality_Version = 41
+ kBitmapSourceFilterQuality_Version = 41,
+ kPictureShaderHasPictureBool_Version = 42,
};
/**