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

Unified Diff: cc/output/managed_memory_policy.h

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/cc_tests.gyp ('k') | cc/output/managed_memory_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/managed_memory_policy.h
diff --git a/cc/output/managed_memory_policy.h b/cc/output/managed_memory_policy.h
index dee74ee1e8d4d384386d4bd47087e1d758b87094..2f68e0524928a62b4407d7afba5d2c4c1a468912 100644
--- a/cc/output/managed_memory_policy.h
+++ b/cc/output/managed_memory_policy.h
@@ -12,6 +12,10 @@
namespace cc {
+namespace proto {
+class ManagedMemoryPolicy;
+} // namespace proto
+
struct CC_EXPORT ManagedMemoryPolicy {
static const size_t kDefaultNumResourcesLimit;
@@ -25,6 +29,9 @@ struct CC_EXPORT ManagedMemoryPolicy {
bool operator==(const ManagedMemoryPolicy&) const;
bool operator!=(const ManagedMemoryPolicy&) const;
+ void ToProtobuf(proto::ManagedMemoryPolicy* proto) const;
+ void FromProtobuf(const proto::ManagedMemoryPolicy& proto);
+
size_t bytes_limit_when_visible;
gpu::MemoryAllocation::PriorityCutoff priority_cutoff_when_visible;
size_t num_resources_limit;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/managed_memory_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698