Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: cc/quad_culler.h

Issue 11413106: cc: Make RenderPass into a struct-like class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/quad_culler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CC_QUAD_CULLER_H_ 5 #ifndef CC_QUAD_CULLER_H_
6 #define CC_QUAD_CULLER_H_ 6 #define CC_QUAD_CULLER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/quad_sink.h" 9 #include "cc/quad_sink.h"
10 #include "cc/render_pass.h" 10 #include "cc/render_pass.h"
11 11
12 namespace cc { 12 namespace cc {
13 class LayerImpl; 13 class LayerImpl;
14 class RenderSurfaceImpl; 14 class RenderSurfaceImpl;
15 template<typename LayerType, typename SurfaceType> 15 template<typename LayerType, typename SurfaceType>
16 class OcclusionTrackerBase; 16 class OcclusionTrackerBase;
17 17
18 class CC_EXPORT QuadCuller : public QuadSink { 18 class CC_EXPORT QuadCuller : public QuadSink {
19 public: 19 public:
20 QuadCuller(QuadList&, SharedQuadStateList&, const LayerImpl*, const Occlusio nTrackerBase<LayerImpl, RenderSurfaceImpl>*, bool showCullingWithDebugBorderQuad s, bool forSurface); 20 QuadCuller(QuadList&, SharedQuadStateList&, const LayerImpl*, const Occlusio nTrackerBase<LayerImpl, RenderSurfaceImpl>&, bool showCullingWithDebugBorderQuad s, bool forSurface);
21 virtual ~QuadCuller() { } 21 virtual ~QuadCuller() { }
22 22
23 // QuadSink implementation. 23 // QuadSink implementation.
24 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVE RRIDE; 24 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) OVE RRIDE;
25 virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE; 25 virtual bool append(scoped_ptr<DrawQuad>, AppendQuadsData&) OVERRIDE;
26 26
27 private: 27 private:
28 QuadList& m_quadList; 28 QuadList& m_quadList;
29 SharedQuadStateList& m_sharedQuadStateList; 29 SharedQuadStateList& m_sharedQuadStateList;
30 const LayerImpl* m_layer;
31 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>& m_occlusionTracker ;
32
30 SharedQuadState* m_currentSharedQuadState; 33 SharedQuadState* m_currentSharedQuadState;
31 const LayerImpl* m_layer;
32 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>* m_occlusionTracker ;
33 bool m_showCullingWithDebugBorderQuads; 34 bool m_showCullingWithDebugBorderQuads;
34 bool m_forSurface; 35 bool m_forSurface;
35 }; 36 };
36 37
37 } 38 }
38 #endif // CC_QUAD_CULLER_H_ 39 #endif // CC_QUAD_CULLER_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698