add a use_alsa gyp setting
[chromium-blink-merge.git] / cc / test / mock_quad_culler.h
blob2f15dcc21e2c093fd995ad710c14c1517af7c101
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"
13 namespace cc {
15 class MockQuadCuller : public QuadSink {
16 public:
17 MockQuadCuller();
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; };
29 private:
30 QuadList& m_activeQuadList;
31 QuadList m_quadListStorage;
32 SharedQuadStateList& m_activeSharedQuadStateList;
33 SharedQuadStateList m_sharedQuadStateStorage;
36 } // namespace cc
38 #endif // CC_TEST_MOCK_QUAD_CULLER_H_