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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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
« no previous file with comments | « cc/resources/tile_priority.h ('k') | cc/resources/tile_task_runner.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/debug/trace_event_argument.h" 7 #include "base/trace_event/trace_event_argument.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 std::string WhichTreeToString(WhichTree tree) { 13 std::string WhichTreeToString(WhichTree tree) {
14 switch (tree) { 14 switch (tree) {
15 case ACTIVE_TREE: 15 case ACTIVE_TREE:
16 return "ACTIVE_TREE"; 16 return "ACTIVE_TREE";
17 case PENDING_TREE: 17 case PENDING_TREE:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 base::debug::TracedValue* state) const { 89 base::debug::TracedValue* state) const {
90 state->SetString("memory_limit_policy", 90 state->SetString("memory_limit_policy",
91 TileMemoryLimitPolicyToString(memory_limit_policy)); 91 TileMemoryLimitPolicyToString(memory_limit_policy));
92 state->SetInteger("soft_memory_limit_in_bytes", soft_memory_limit_in_bytes); 92 state->SetInteger("soft_memory_limit_in_bytes", soft_memory_limit_in_bytes);
93 state->SetInteger("hard_memory_limit_in_bytes", hard_memory_limit_in_bytes); 93 state->SetInteger("hard_memory_limit_in_bytes", hard_memory_limit_in_bytes);
94 state->SetInteger("num_resources_limit", num_resources_limit); 94 state->SetInteger("num_resources_limit", num_resources_limit);
95 state->SetString("tree_priority", TreePriorityToString(tree_priority)); 95 state->SetString("tree_priority", TreePriorityToString(tree_priority));
96 } 96 }
97 97
98 } // namespace cc 98 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_priority.h ('k') | cc/resources/tile_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698