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

Unified Diff: cc/output/managed_memory_policy.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/output/managed_memory_policy.h ('k') | cc/output/managed_memory_policy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/managed_memory_policy.cc
diff --git a/cc/output/managed_memory_policy.cc b/cc/output/managed_memory_policy.cc
index 0dc7def60e1c2422bbd4841d528490173ffdef7f..ed3f4a865097d768cd52d70b3134da3f25e308a2 100644
--- a/cc/output/managed_memory_policy.cc
+++ b/cc/output/managed_memory_policy.cc
@@ -7,8 +7,6 @@
#include <stddef.h>
#include "base/logging.h"
-#include "cc/proto/gpu_conversions.h"
-#include "cc/proto/managed_memory_policy.pb.h"
namespace cc {
@@ -45,21 +43,6 @@ bool ManagedMemoryPolicy::operator!=(const ManagedMemoryPolicy& other) const {
return !(*this == other);
}
-void ManagedMemoryPolicy::ToProtobuf(proto::ManagedMemoryPolicy* proto) const {
- proto->set_bytes_limit_when_visible(bytes_limit_when_visible);
- proto->set_priority_cutoff_when_visible(
- MemoryAllocationPriorityCutoffToProto(priority_cutoff_when_visible));
- proto->set_num_resources_limit(num_resources_limit);
-}
-
-void ManagedMemoryPolicy::FromProtobuf(
- const proto::ManagedMemoryPolicy& proto) {
- bytes_limit_when_visible = proto.bytes_limit_when_visible();
- priority_cutoff_when_visible = MemoryAllocationPriorityCutoffFromProto(
- proto.priority_cutoff_when_visible());
- num_resources_limit = proto.num_resources_limit();
-}
-
// static
TileMemoryLimitPolicy
ManagedMemoryPolicy::PriorityCutoffToTileMemoryLimitPolicy(
« no previous file with comments | « cc/output/managed_memory_policy.h ('k') | cc/output/managed_memory_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698