Commit 82757b10 authored by sugoi@chromium.org's avatar sugoi@chromium.org

Minor modification that reflects a small API change in Skia

BUG=

Review URL: https://codereview.chromium.org/50603014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233067 0039d316-1c4b-4281-b951-d872f2087c98
parent e9d3b95f
......@@ -210,7 +210,8 @@ void ParamTraits<skia::RefPtr<SkImageFilter> >::Write(
SkImageFilter* filter = p.get();
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (filter && !command_line.HasSwitch(switches::kDisableFiltersOverIPC)) {
skia::RefPtr<SkData> data = skia::AdoptRef(SkSerializeFlattenable(filter));
skia::RefPtr<SkData> data =
skia::AdoptRef(SkValidatingSerializeFlattenable(filter));
m->WriteData(static_cast<const char*>(data->data()), data->size());
} else {
m->WriteData(0, 0);
......@@ -226,7 +227,8 @@ bool ParamTraits<skia::RefPtr<SkImageFilter> >::Read(
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if ((length > 0) &&
!command_line.HasSwitch(switches::kDisableFiltersOverIPC)) {
SkFlattenable* flattenable = SkDeserializeFlattenable(data, length);
SkFlattenable* flattenable = SkValidatingDeserializeFlattenable(
data, length, SkImageFilter::GetFlattenableType());
*r = skia::AdoptRef(static_cast<SkImageFilter*>(flattenable));
} else {
r->clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment