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 CCQuadCuller_h | 5 #ifndef CCQuadCuller_h |
6 #define CCQuadCuller_h | 6 #define CCQuadCuller_h |
7 | 7 |
8 #include "CCQuadSink.h" | 8 #include "CCQuadSink.h" |
9 #include "CCRenderPass.h" | 9 #include "CCRenderPass.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 class CCLayerImpl; | 12 class LayerImpl; |
13 class CCRenderSurface; | 13 class RenderSurfaceImpl; |
14 template<typename LayerType, typename SurfaceType> | 14 template<typename LayerType, typename SurfaceType> |
15 class CCOcclusionTrackerBase; | 15 class OcclusionTrackerBase; |
16 | 16 |
17 class CCQuadCuller : public CCQuadSink { | 17 class QuadCuller : public QuadSink { |
18 public: | 18 public: |
19 CCQuadCuller(CCQuadList&, CCSharedQuadStateList&, CCLayerImpl*, const CCOccl
usionTrackerBase<CCLayerImpl, CCRenderSurface>*, bool showCullingWithDebugBorder
Quads, bool forSurface); | 19 QuadCuller(QuadList&, SharedQuadStateList&, LayerImpl*, const OcclusionTrack
erBase<LayerImpl, RenderSurfaceImpl>*, bool showCullingWithDebugBorderQuads, boo
l forSurface); |
20 virtual ~CCQuadCuller() { } | 20 virtual ~QuadCuller() { } |
21 | 21 |
22 // CCQuadSink implementation. | 22 // QuadSink implementation. |
23 virtual CCSharedQuadState* useSharedQuadState(scoped_ptr<CCSharedQuadState>)
OVERRIDE; | 23 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVE
RRIDE; |
24 virtual bool append(scoped_ptr<CCDrawQuad>, CCAppendQuadsData&) OVERRIDE; | 24 virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE; |
25 | 25 |
26 private: | 26 private: |
27 CCQuadList& m_quadList; | 27 QuadList& m_quadList; |
28 CCSharedQuadStateList& m_sharedQuadStateList; | 28 SharedQuadStateList& m_sharedQuadStateList; |
29 CCSharedQuadState* m_currentSharedQuadState; | 29 SharedQuadState* m_currentSharedQuadState; |
30 CCLayerImpl* m_layer; | 30 LayerImpl* m_layer; |
31 const CCOcclusionTrackerBase<CCLayerImpl, CCRenderSurface>* m_occlusionTrack
er; | 31 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>* m_occlusionTracker
; |
32 bool m_showCullingWithDebugBorderQuads; | 32 bool m_showCullingWithDebugBorderQuads; |
33 bool m_forSurface; | 33 bool m_forSurface; |
34 }; | 34 }; |
35 | 35 |
36 } | 36 } |
37 #endif // CCQuadCuller_h | 37 #endif // CCQuadCuller_h |
OLD | NEW |