| 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 CCOcclusionTracker_h | 5 #ifndef CCOcclusionTracker_h |
| 6 #define CCOcclusionTracker_h | 6 #define CCOcclusionTracker_h |
| 7 | 7 |
| 8 #include "CCLayerIterator.h" | 8 #include "CCLayerIterator.h" |
| 9 #include "FloatQuad.h" | 9 #include "FloatQuad.h" |
| 10 #include "Region.h" | 10 #include "Region.h" |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace cc { |
| 13 class CCOverdrawMetrics; | 13 class CCOverdrawMetrics; |
| 14 class CCLayerImpl; | 14 class CCLayerImpl; |
| 15 class CCRenderSurface; | 15 class CCRenderSurface; |
| 16 class LayerChromium; | 16 class LayerChromium; |
| 17 class RenderSurfaceChromium; | 17 class RenderSurfaceChromium; |
| 18 | 18 |
| 19 // This class is used to track occlusion of layers while traversing them in a fr
ont-to-back order. As each layer is visited, one of the | 19 // This class is used to track occlusion of layers while traversing them in a fr
ont-to-back order. As each layer is visited, one of the |
| 20 // methods in this class is called to notify it about the current target surface
. | 20 // methods in this class is called to notify it about the current target surface
. |
| 21 // Then, occlusion in the content space of the current layer may be queried, via
methods such as occluded() and unoccludedContentRect(). | 21 // Then, occlusion in the content space of the current layer may be queried, via
methods such as occluded() and unoccludedContentRect(). |
| 22 // If the current layer owns a RenderSurface, then occlusion on that RenderSurfa
ce may also be queried via surfaceOccluded() and surfaceUnoccludedContentRect(). | 22 // If the current layer owns a RenderSurface, then occlusion on that RenderSurfa
ce may also be queried via surfaceOccluded() and surfaceUnoccludedContentRect(). |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // This is used for visualizing the occlusion tracking process. | 95 // This is used for visualizing the occlusion tracking process. |
| 96 Vector<IntRect>* m_occludingScreenSpaceRects; | 96 Vector<IntRect>* m_occludingScreenSpaceRects; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 typedef CCOcclusionTrackerBase<LayerChromium, RenderSurfaceChromium> CCOcclusion
Tracker; | 99 typedef CCOcclusionTrackerBase<LayerChromium, RenderSurfaceChromium> CCOcclusion
Tracker; |
| 100 typedef CCOcclusionTrackerBase<CCLayerImpl, CCRenderSurface> CCOcclusionTrackerI
mpl; | 100 typedef CCOcclusionTrackerBase<CCLayerImpl, CCRenderSurface> CCOcclusionTrackerI
mpl; |
| 101 | 101 |
| 102 } | 102 } |
| 103 #endif // CCOcclusionTracker_h | 103 #endif // CCOcclusionTracker_h |
| OLD | NEW |