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

Side by Side Diff: cc/tile_priority.h

Issue 11568027: cc: Add TileManager interface that allows LTHI to determine when to activate pending tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/tile_manager.cc ('k') | no next file » | 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 #ifndef CC_TILE_PRIORITY_H_ 5 #ifndef CC_TILE_PRIORITY_H_
6 #define CC_TILE_PRIORITY_H_ 6 #define CC_TILE_PRIORITY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "cc/picture_pile.h" 11 #include "cc/picture_pile.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 enum WhichTree { 17 enum WhichTree {
18 // Note: these must be 0 and 1 because we index with them in various places, 18 // Note: these must be 0 and 1 because we index with them in various places,
19 // e.g. in Tile::priority_. 19 // e.g. in Tile::priority_.
20 ACTIVE_TREE = 0, 20 ACTIVE_TREE = 0,
21 PENDING_TREE = 1 21 PENDING_TREE = 1,
22 NUM_TREES = 2
22 }; 23 };
23 24
24 enum TileResolution { 25 enum TileResolution {
25 LOW_RESOLUTION = 0 , 26 LOW_RESOLUTION = 0 ,
26 HIGH_RESOLUTION = 1, 27 HIGH_RESOLUTION = 1,
27 NON_IDEAL_RESOLUTION = 2 28 NON_IDEAL_RESOLUTION = 2
28 }; 29 };
29 30
30 struct CC_EXPORT TilePriority { 31 struct CC_EXPORT TilePriority {
31 TilePriority() 32 TilePriority()
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 105
105 size_t memory_limit_in_bytes; 106 size_t memory_limit_in_bytes;
106 107
107 // Set when scrolling. 108 // Set when scrolling.
108 bool smoothness_takes_priority; 109 bool smoothness_takes_priority;
109 }; 110 };
110 111
111 } // namespace cc 112 } // namespace cc
112 113
113 #endif // CC_TILE_PRIORITY_H_ 114 #endif // CC_TILE_PRIORITY_H_
OLDNEW
« no previous file with comments | « cc/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698