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
3 // found in the LICENSE file.
5 #ifndef CC_TEST_MOCK_QUAD_CULLER_H_
6 #define CC_TEST_MOCK_QUAD_CULLER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/draw_quad.h"
10 #include "cc/quad_sink.h"
11 #include "cc/render_pass.h"
15 class MockQuadCuller
: public QuadSink
{
18 virtual ~MockQuadCuller();
20 MockQuadCuller(QuadList
& externalQuadList
, SharedQuadStateList
& externalSharedQuadStateList
);
22 virtual bool append(scoped_ptr
<DrawQuad
> newQuad
, AppendQuadsData
&) OVERRIDE
;
24 virtual SharedQuadState
* useSharedQuadState(scoped_ptr
<SharedQuadState
> passSharedQuadState
) OVERRIDE
;
26 const QuadList
& quadList() const { return m_activeQuadList
; };
27 const SharedQuadStateList
& sharedQuadStateList() const { return m_activeSharedQuadStateList
; };
30 QuadList
& m_activeQuadList
;
31 QuadList m_quadListStorage
;
32 SharedQuadStateList
& m_activeSharedQuadStateList
;
33 SharedQuadStateList m_sharedQuadStateStorage
;
38 #endif // CC_TEST_MOCK_QUAD_CULLER_H_