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