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

Unified Diff: content/common/cc_messages.h

Issue 35893002: IPC pickling optimization for render passes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ccmessagesperf-reserve: add algorithm header Created 7 years, 2 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.h
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h
index b1271b30b61e8e9418d05905e12aec31dc2cb2f4..f5bb6f16e145b71616590a4309b9d5c9ff1f9730 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -77,6 +77,7 @@ template <>
struct CONTENT_EXPORT ParamTraits<cc::RenderPass> {
typedef cc::RenderPass param_type;
static void Write(Message* m, const param_type& p);
+ static size_t ReserveSizeForWrite(const param_type& p);
Tom Sepez 2013/10/24 17:48:06 I'm not sure making this a method of this particul
danakj 2013/10/24 17:51:38 Alright. I wanted to keep it close to the Write()
static bool Read(const Message* m, PickleIterator* iter, param_type* r);
static void Log(const param_type& p, std::string* l);
};

Powered by Google App Engine
This is Rietveld 408576698