OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |