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_RESOURCES_TILE_PRIORITY_H_ | 5 #ifndef CC_RESOURCES_TILE_PRIORITY_H_ |
6 #define CC_RESOURCES_TILE_PRIORITY_H_ | 6 #define CC_RESOURCES_TILE_PRIORITY_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <limits> | 9 #include <limits> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/debug/trace_event_argument.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "cc/resources/picture_pile.h" | 14 #include "cc/base/cc_export.h" |
15 #include "ui/gfx/quad_f.h" | |
16 #include "ui/gfx/rect.h" | |
17 #include "ui/gfx/size.h" | |
18 | 15 |
19 namespace base { | 16 namespace base { |
20 class Value; | 17 class Value; |
21 } | 18 } |
22 | 19 |
23 namespace cc { | 20 namespace cc { |
24 | 21 |
25 enum WhichTree { | 22 enum WhichTree { |
26 // Note: these must be 0 and 1 because we index with them in various places, | 23 // Note: these must be 0 and 1 because we index with them in various places, |
27 // e.g. in Tile::priority_. | 24 // e.g. in Tile::priority_. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 bool operator!=(const GlobalStateThatImpactsTilePriority& other) const { | 150 bool operator!=(const GlobalStateThatImpactsTilePriority& other) const { |
154 return !(*this == other); | 151 return !(*this == other); |
155 } | 152 } |
156 | 153 |
157 void AsValueInto(base::debug::TracedValue* dict) const; | 154 void AsValueInto(base::debug::TracedValue* dict) const; |
158 }; | 155 }; |
159 | 156 |
160 } // namespace cc | 157 } // namespace cc |
161 | 158 |
162 #endif // CC_RESOURCES_TILE_PRIORITY_H_ | 159 #endif // CC_RESOURCES_TILE_PRIORITY_H_ |
OLD | NEW |