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_TILES_TILE_PRIORITY_H_ | 5 #ifndef CC_TILES_TILE_PRIORITY_H_ |
6 #define CC_TILES_TILE_PRIORITY_H_ | 6 #define CC_TILES_TILE_PRIORITY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <limits> | 11 #include <limits> |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/trace_event/trace_event_argument.h" | 15 #include "base/trace_event/trace_event_argument.h" |
16 #include "cc/base/cc_export.h" | 16 #include "cc/cc_export.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class Value; | 19 class Value; |
20 } | 20 } |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 enum WhichTree { | 24 enum WhichTree { |
25 // Note: these must be 0 and 1 because we index with them in various places, | 25 // Note: these must be 0 and 1 because we index with them in various places, |
26 // e.g. in Tile::priority_. | 26 // e.g. in Tile::priority_. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 bool operator!=(const GlobalStateThatImpactsTilePriority& other) const { | 119 bool operator!=(const GlobalStateThatImpactsTilePriority& other) const { |
120 return !(*this == other); | 120 return !(*this == other); |
121 } | 121 } |
122 | 122 |
123 void AsValueInto(base::trace_event::TracedValue* dict) const; | 123 void AsValueInto(base::trace_event::TracedValue* dict) const; |
124 }; | 124 }; |
125 | 125 |
126 } // namespace cc | 126 } // namespace cc |
127 | 127 |
128 #endif // CC_TILES_TILE_PRIORITY_H_ | 128 #endif // CC_TILES_TILE_PRIORITY_H_ |
OLD | NEW |