Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: content/common/cc_messages.cc

Issue 50603014: API change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to ToT, no change Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index ad6fcbeb65ba724decb9a568226de80256583d5f..d987c78ce24ce1ddd5a4d2aade820e70fca0d16d 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698