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

Unified Diff: cc/trees/proxy_common.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/trees/proxy_common.h ('k') | cc/trees/proxy_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_common.cc
diff --git a/cc/trees/proxy_common.cc b/cc/trees/proxy_common.cc
index be80dd52733bdb89d75a53dc1db81e2a44dba1d4..ab9c87be5b6d060f7112312d705208939900a90d 100644
--- a/cc/trees/proxy_common.cc
+++ b/cc/trees/proxy_common.cc
@@ -4,7 +4,6 @@
#include "cc/trees/proxy_common.h"
-#include "cc/proto/begin_main_frame_and_commit_state.pb.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
@@ -13,23 +12,4 @@ BeginMainFrameAndCommitState::BeginMainFrameAndCommitState() {}
BeginMainFrameAndCommitState::~BeginMainFrameAndCommitState() {}
-void BeginMainFrameAndCommitState::ToProtobuf(
- proto::BeginMainFrameAndCommitState* proto) const {
- proto->set_begin_frame_id(begin_frame_id);
- begin_frame_args.ToProtobuf(proto->mutable_begin_frame_args());
- scroll_info->ToProtobuf(proto->mutable_scroll_info());
- proto->set_memory_allocation_limit_bytes(memory_allocation_limit_bytes);
- proto->set_evicted_ui_resources(evicted_ui_resources);
-}
-
-void BeginMainFrameAndCommitState::FromProtobuf(
- const proto::BeginMainFrameAndCommitState& proto) {
- begin_frame_id = proto.begin_frame_id();
- begin_frame_args.FromProtobuf(proto.begin_frame_args());
- scroll_info.reset(new ScrollAndScaleSet());
- scroll_info->FromProtobuf(proto.scroll_info());
- memory_allocation_limit_bytes = proto.memory_allocation_limit_bytes();
- evicted_ui_resources = proto.evicted_ui_resources();
-}
-
} // namespace cc
« no previous file with comments | « cc/trees/proxy_common.h ('k') | cc/trees/proxy_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698