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

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

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/resources/tile_priority_unittest.cc » ('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/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 { 10 namespace {
11 11
12 // TODO(qinmin): modify ui/range/Range.h to support template so that we 12 // TODO(qinmin): modify ui/range/Range.h to support template so that we
13 // don't need to define this. 13 // don't need to define this.
14 struct Range { 14 struct Range {
15 Range(float start, float end) : start_(start), end_(end) {} 15 Range(float start, float end) : start_(start), end_(end) {}
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 scoped_ptr<base::Value> GlobalStateThatImpactsTilePriority::AsValue() const { 186 scoped_ptr<base::Value> GlobalStateThatImpactsTilePriority::AsValue() const {
187 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 187 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
188 state->Set("memory_limit_policy", TileMemoryLimitPolicyAsValue(memory_limit_po licy).release()); 188 state->Set("memory_limit_policy", TileMemoryLimitPolicyAsValue(memory_limit_po licy).release());
189 state->SetInteger("memory_limit_in_bytes", memory_limit_in_bytes); 189 state->SetInteger("memory_limit_in_bytes", memory_limit_in_bytes);
190 state->Set("tree_priority", TreePriorityAsValue(tree_priority).release()); 190 state->Set("tree_priority", TreePriorityAsValue(tree_priority).release());
191 return state.PassAs<base::Value>(); 191 return state.PassAs<base::Value>();
192 } 192 }
193 193
194 194
195 } // namespace cc 195 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_priority.h ('k') | cc/resources/tile_priority_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698