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

Unified Diff: cc/animation/element_id.cc

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « cc/animation/element_id.h ('k') | cc/blimp/compositor_state_deserializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_id.cc
diff --git a/cc/animation/element_id.cc b/cc/animation/element_id.cc
index 242cd32e621e37a9fb844d567dbc0f0a1c026410..4b6e6e6f733cb435a88fe32aef388ed539ac0a13 100644
--- a/cc/animation/element_id.cc
+++ b/cc/animation/element_id.cc
@@ -9,7 +9,6 @@
#include "base/trace_event/trace_event_argument.h"
#include "base/values.h"
-#include "cc/proto/element_id.pb.h"
namespace cc {
@@ -46,16 +45,6 @@ std::unique_ptr<base::Value> ElementId::AsValue() const {
return std::move(res);
}
-void ElementId::ToProtobuf(proto::ElementId* proto) const {
- proto->set_primary_id(primaryId);
- proto->set_secondary_id(secondaryId);
-}
-
-void ElementId::FromProtobuf(const proto::ElementId& proto) {
- primaryId = proto.primary_id();
- secondaryId = proto.secondary_id();
-}
-
size_t ElementIdHash::operator()(ElementId key) const {
return base::HashInts(key.primaryId, key.secondaryId);
}
« no previous file with comments | « cc/animation/element_id.h ('k') | cc/blimp/compositor_state_deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698