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 MockCCQuadCuller_h | 5 #ifndef MockCCQuadCuller_h |
6 #define MockCCQuadCuller_h | 6 #define MockCCQuadCuller_h |
7 | 7 |
8 #include "CCDrawQuad.h" | |
9 #include "IntRect.h" | 8 #include "IntRect.h" |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/draw_quad.h" |
11 #include "cc/quad_sink.h" | 11 #include "cc/quad_sink.h" |
12 #include "cc/render_pass.h" | 12 #include "cc/render_pass.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class MockQuadCuller : public QuadSink { | 16 class MockQuadCuller : public QuadSink { |
17 public: | 17 public: |
18 MockQuadCuller(); | 18 MockQuadCuller(); |
19 virtual ~MockQuadCuller(); | 19 virtual ~MockQuadCuller(); |
20 | 20 |
21 MockQuadCuller(QuadList& externalQuadList, SharedQuadStateList& externalShar
edQuadStateList); | 21 MockQuadCuller(QuadList& externalQuadList, SharedQuadStateList& externalShar
edQuadStateList); |
22 | 22 |
23 virtual bool append(scoped_ptr<DrawQuad> newQuad, AppendQuadsData&) OVERRIDE
; | 23 virtual bool append(scoped_ptr<DrawQuad> newQuad, AppendQuadsData&) OVERRIDE
; |
24 | 24 |
25 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState> pass
SharedQuadState) OVERRIDE; | 25 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState> pass
SharedQuadState) OVERRIDE; |
26 | 26 |
27 const QuadList& quadList() const { return m_activeQuadList; }; | 27 const QuadList& quadList() const { return m_activeQuadList; }; |
28 const SharedQuadStateList& sharedQuadStateList() const { return m_activeShar
edQuadStateList; }; | 28 const SharedQuadStateList& sharedQuadStateList() const { return m_activeShar
edQuadStateList; }; |
29 | 29 |
30 private: | 30 private: |
31 QuadList& m_activeQuadList; | 31 QuadList& m_activeQuadList; |
32 QuadList m_quadListStorage; | 32 QuadList m_quadListStorage; |
33 SharedQuadStateList& m_activeSharedQuadStateList; | 33 SharedQuadStateList& m_activeSharedQuadStateList; |
34 SharedQuadStateList m_sharedQuadStateStorage; | 34 SharedQuadStateList m_sharedQuadStateStorage; |
35 }; | 35 }; |
36 | 36 |
37 } // namespace cc | 37 } // namespace cc |
38 | 38 |
39 #endif // MockCCQuadCuller_h | 39 #endif // MockCCQuadCuller_h |
OLD | NEW |