Don't serialize SkPictures in SkPictureShaders when in untrusted mode.
authormtklein <mtklein@chromium.org>
Wed, 20 May 2015 19:05:15 +0000 (12:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 May 2015 19:05:15 +0000 (12:05 -0700)
commit76be9c8dc0e5306ef81c2987848088cdec7ccd3f
treef7e18d343908a8c8e9e94e45dbf26572c421b1ff
parent364ad00446923d1cbc963c7358cd9b01efc53d3e
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
include/core/SkPicture.h
src/core/SkPictureShader.cpp
src/core/SkReadBuffer.h