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_TREES_OCCLUSION_TRACKER_H_ | 5 #ifndef CC_TREES_OCCLUSION_TRACKER_H_ |
6 #define CC_TREES_OCCLUSION_TRACKER_H_ | 6 #define CC_TREES_OCCLUSION_TRACKER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/base/simple_enclosed_region.h" | 12 #include "cc/base/simple_enclosed_region.h" |
13 #include "cc/layers/layer_iterator.h" | 13 #include "cc/layers/layer_iterator.h" |
14 #include "cc/trees/occlusion.h" | 14 #include "cc/trees/occlusion.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 class LayerImpl; | 18 class LayerImpl; |
19 class Region; | 19 class Region; |
20 class RenderSurfaceImpl; | 20 class RenderSurfaceImpl; |
21 class Layer; | 21 class Layer; |
22 class RenderSurface; | 22 class RenderSurface; |
23 | 23 |
24 // This class is used to track occlusion of layers while traversing them in a | 24 // This class is used to track occlusion of layers while traversing them in a |
25 // front-to-back order. As each layer is visited, one of the methods in this | 25 // front-to-back order. As each layer is visited, one of the methods in this |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 }; | 128 }; |
129 | 129 |
130 #if !defined(COMPILER_MSVC) | 130 #if !defined(COMPILER_MSVC) |
131 extern template class OcclusionTracker<Layer>; | 131 extern template class OcclusionTracker<Layer>; |
132 extern template class OcclusionTracker<LayerImpl>; | 132 extern template class OcclusionTracker<LayerImpl>; |
133 #endif | 133 #endif |
134 | 134 |
135 } // namespace cc | 135 } // namespace cc |
136 | 136 |
137 #endif // CC_TREES_OCCLUSION_TRACKER_H_ | 137 #endif // CC_TREES_OCCLUSION_TRACKER_H_ |
OLD | NEW |