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

Unified Diff: cc/ipc/cc_param_traits.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix reflector Created 4 years, 6 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: cc/ipc/cc_param_traits.h
diff --git a/cc/ipc/cc_param_traits.h b/cc/ipc/cc_param_traits.h
index c813a9dba97504b09e15c7b4c5c79b007d6a3727..f245e36ace7657e82360ffb794358a974579a552 100644
--- a/cc/ipc/cc_param_traits.h
+++ b/cc/ipc/cc_param_traits.h
@@ -93,6 +93,16 @@ struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> {
};
template <>
+struct CC_IPC_EXPORT ParamTraits<std::unique_ptr<cc::CompositorFrame>> {
danakj 2016/06/23 20:34:41 its a bit weird tho, why do you need to do it this
+ typedef std::unique_ptr<cc::CompositorFrame> param_type;
+ 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::CompositorFrameAck> {
typedef cc::CompositorFrameAck param_type;
static void Write(base::Pickle* m, const param_type& p);

Powered by Google App Engine
This is Rietveld 408576698