blob: 916ab13812a7245c424cc30c84db2f3cbc6aa43b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CCQuadCuller_h
#define CCQuadCuller_h
#include "cc/quad_sink.h"
#include "cc/render_pass.h"
namespace cc {
class LayerImpl;
class RenderSurfaceImpl;
template<typename LayerType, typename SurfaceType>
class OcclusionTrackerBase;
class QuadCuller : public QuadSink {
public:
QuadCuller(QuadList&, SharedQuadStateList&, LayerImpl*, const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>*, bool showCullingWithDebugBorderQuads, bool forSurface);
virtual ~QuadCuller() { }
// QuadSink implementation.
virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVERRIDE;
virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE;
private:
QuadList& m_quadList;
SharedQuadStateList& m_sharedQuadStateList;
SharedQuadState* m_currentSharedQuadState;
LayerImpl* m_layer;
const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>* m_occlusionTracker;
bool m_showCullingWithDebugBorderQuads;
bool m_forSurface;
};
}
#endif // CCQuadCuller_h
|