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

Unified Diff: cc/proto/managed_memory_policy.proto

Issue 1490513005: Add support for ManagedMemoryPolicy (de)serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-settings
Patch Set: Rebase on top of origin/master Created 5 years 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/proto/gpu_conversions_unittest.cc ('k') | cc/proto/memory_allocation.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/managed_memory_policy.proto
diff --git a/cc/proto/rectf.proto b/cc/proto/managed_memory_policy.proto
similarity index 51%
copy from cc/proto/rectf.proto
copy to cc/proto/managed_memory_policy.proto
index 5bd56f1cb9f2d09c42146476d6b81165fa5da160..9f42a6a65f6452c3f772ee01516259b9709bc413 100644
--- a/cc/proto/rectf.proto
+++ b/cc/proto/managed_memory_policy.proto
@@ -4,14 +4,14 @@
syntax = "proto2";
-import "pointf.proto";
-import "sizef.proto";
-
-option optimize_for = LITE_RUNTIME;
+import "memory_allocation.proto";
package cc.proto;
-message RectF {
- optional cc.proto.PointF origin = 1;
- optional cc.proto.SizeF size = 2;
+option optimize_for = LITE_RUNTIME;
+
+message ManagedMemoryPolicy {
+ optional uint32 bytes_limit_when_visible = 1;
+ optional MemoryAllocation.PriorityCutoff priority_cutoff_when_visible = 2;
+ optional uint32 num_resources_limit = 3;
}
« no previous file with comments | « cc/proto/gpu_conversions_unittest.cc ('k') | cc/proto/memory_allocation.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698