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 "cc/cc_export.h" |
8 #include "cc/quad_sink.h" | 9 #include "cc/quad_sink.h" |
9 #include "cc/render_pass.h" | 10 #include "cc/render_pass.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 class LayerImpl; | 13 class LayerImpl; |
13 class RenderSurfaceImpl; | 14 class RenderSurfaceImpl; |
14 template<typename LayerType, typename SurfaceType> | 15 template<typename LayerType, typename SurfaceType> |
15 class OcclusionTrackerBase; | 16 class OcclusionTrackerBase; |
16 | 17 |
17 class QuadCuller : public QuadSink { | 18 class CC_EXPORT QuadCuller : public QuadSink { |
18 public: | 19 public: |
19 QuadCuller(QuadList&, SharedQuadStateList&, LayerImpl*, const OcclusionTrack
erBase<LayerImpl, RenderSurfaceImpl>*, bool showCullingWithDebugBorderQuads, boo
l forSurface); | 20 QuadCuller(QuadList&, SharedQuadStateList&, LayerImpl*, const OcclusionTrack
erBase<LayerImpl, RenderSurfaceImpl>*, bool showCullingWithDebugBorderQuads, boo
l forSurface); |
20 virtual ~QuadCuller() { } | 21 virtual ~QuadCuller() { } |
21 | 22 |
22 // QuadSink implementation. | 23 // QuadSink implementation. |
23 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVE
RRIDE; | 24 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVE
RRIDE; |
24 virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE; | 25 virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE; |
25 | 26 |
26 private: | 27 private: |
27 QuadList& m_quadList; | 28 QuadList& m_quadList; |
28 SharedQuadStateList& m_sharedQuadStateList; | 29 SharedQuadStateList& m_sharedQuadStateList; |
29 SharedQuadState* m_currentSharedQuadState; | 30 SharedQuadState* m_currentSharedQuadState; |
30 LayerImpl* m_layer; | 31 LayerImpl* m_layer; |
31 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>* m_occlusionTracker
; | 32 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>* m_occlusionTracker
; |
32 bool m_showCullingWithDebugBorderQuads; | 33 bool m_showCullingWithDebugBorderQuads; |
33 bool m_forSurface; | 34 bool m_forSurface; |
34 }; | 35 }; |
35 | 36 |
36 } | 37 } |
37 #endif // CCQuadCuller_h | 38 #endif // CCQuadCuller_h |
OLD | NEW |