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

Unified Diff: content/common/cc_messages.cc

Issue 12378053: Move Mailbox from cc to gpu, and its traits to gpu/ipc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios hate Created 7 years, 10 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 | « content/common/cc_messages.h ('k') | content/common/cc_messages_unittest.cc » ('j') | 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 c61c812c510667631f4ae755658a1ccc3ee84464..799fa972fa21e987bb458bb347cf381b45111693 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -536,26 +536,6 @@ void ParamTraits<cc::RenderPass>::Log(
l->append("])");
}
-void ParamTraits<cc::Mailbox>::Write(Message* m, const param_type& p) {
- m->WriteBytes(p.name, sizeof(p.name));
-}
-
-bool ParamTraits<cc::Mailbox>::Read(const Message* m,
- PickleIterator* iter,
- param_type* p) {
- const char* bytes = NULL;
- if (!m->ReadBytes(iter, &bytes, sizeof(p->name)))
- return false;
- DCHECK(bytes);
- memcpy(p->name, bytes, sizeof(p->name));
- return true;
-}
-
-void ParamTraits<cc::Mailbox>::Log(const param_type& p, std::string* l) {
- for (size_t i = 0; i < sizeof(p.name); ++i)
- *l += base::StringPrintf("%02x", p.name[i]);
-}
-
namespace {
enum CompositorFrameType {
NO_FRAME,
« no previous file with comments | « content/common/cc_messages.h ('k') | content/common/cc_messages_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698