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

Side by Side Diff: cc/resources/tile_priority.cc

Issue 255533002: cc: Remove unused_memory_limit_in_bytes field from GlobalStateThatImpactsTilePriority. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/tile_priority.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/tile_priority.h" 5 #include "cc/resources/tile_priority.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return scoped_ptr<base::Value>(new base::StringValue( 99 return scoped_ptr<base::Value>(new base::StringValue(
100 "<unknown>")); 100 "<unknown>"));
101 } 101 }
102 102
103 scoped_ptr<base::Value> GlobalStateThatImpactsTilePriority::AsValue() const { 103 scoped_ptr<base::Value> GlobalStateThatImpactsTilePriority::AsValue() const {
104 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 104 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
105 state->Set("memory_limit_policy", 105 state->Set("memory_limit_policy",
106 TileMemoryLimitPolicyAsValue(memory_limit_policy).release()); 106 TileMemoryLimitPolicyAsValue(memory_limit_policy).release());
107 state->SetInteger("soft_memory_limit_in_bytes", soft_memory_limit_in_bytes); 107 state->SetInteger("soft_memory_limit_in_bytes", soft_memory_limit_in_bytes);
108 state->SetInteger("hard_memory_limit_in_bytes", hard_memory_limit_in_bytes); 108 state->SetInteger("hard_memory_limit_in_bytes", hard_memory_limit_in_bytes);
109 state->SetInteger("unused_memory_limit_in_bytes",
110 unused_memory_limit_in_bytes);
111 state->SetInteger("num_resources_limit", num_resources_limit); 109 state->SetInteger("num_resources_limit", num_resources_limit);
112 state->Set("tree_priority", TreePriorityAsValue(tree_priority).release()); 110 state->Set("tree_priority", TreePriorityAsValue(tree_priority).release());
113 return state.PassAs<base::Value>(); 111 return state.PassAs<base::Value>();
114 } 112 }
115 113
116 } // namespace cc 114 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_priority.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698