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

Unified Diff: content/common/cc_messages.cc

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 9065a946ad3bc5ff857e30610170e469a4998575..f4b5a8af0e28db5a98f0d70e44312f66f05973ca 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -40,6 +40,9 @@ void ParamTraits<cc::FilterOperation>::Write(
WriteParam(m, p.amount());
WriteParam(m, p.zoom_inset());
break;
+ case cc::FilterOperation::REFERENCE:
+ // Reference filters cannot be serialized until crbug.com/164084 is fixed.
+ break;
}
}
@@ -105,6 +108,11 @@ bool ParamTraits<cc::FilterOperation>::Read(
success = true;
}
break;
+ case cc::FilterOperation::REFERENCE:
+ // Reference filters cannot be serialized until crbug.com/164084 is fixed.
+ NOTREACHED();
+ success = false;
+ break;
}
return success;
}
@@ -147,6 +155,9 @@ void ParamTraits<cc::FilterOperation>::Log(
l->append(", ");
LogParam(p.zoom_inset(), l);
break;
+ case cc::FilterOperation::REFERENCE:
+ // Reference filters cannot be serialized until crbug.com/164084 is fixed.
+ break;
}
l->append(")");
}

Powered by Google App Engine
This is Rietveld 408576698