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

Unified Diff: cc/ipc/cc_param_traits.h

Issue 1996783002: Make cc::SurfaceId unguessable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Ben's comment Created 4 years, 7 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
« no previous file with comments | « no previous file | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_param_traits.h
diff --git a/cc/ipc/cc_param_traits.h b/cc/ipc/cc_param_traits.h
index 310b3f0b72a8bd1764492ddd272644690c059b00..3110ce58516c25e9bc5b61da015b857d1af6bae4 100644
--- a/cc/ipc/cc_param_traits.h
+++ b/cc/ipc/cc_param_traits.h
@@ -73,6 +73,17 @@ struct CC_IPC_EXPORT ParamTraits<cc::RenderPass> {
};
template <>
+struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> {
+ typedef cc::SurfaceId param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> {
typedef cc::CompositorFrame param_type;
static void Write(base::Pickle* m, const param_type& p);
« no previous file with comments | « no previous file | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698