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

Side by Side Diff: cc/trees/quad_culler.h

Issue 183563003: cc: Clean up OcclusionTracker template parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusionparams: Created 6 years, 9 months 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/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/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_TREES_QUAD_CULLER_H_ 5 #ifndef CC_TREES_QUAD_CULLER_H_
6 #define CC_TREES_QUAD_CULLER_H_ 6 #define CC_TREES_QUAD_CULLER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/quad_sink.h" 9 #include "cc/layers/quad_sink.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/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> class OcclusionTrackerBase; 15 template <typename LayerType>
16 class OcclusionTracker;
16 17
17 class CC_EXPORT QuadCuller : public QuadSink { 18 class CC_EXPORT QuadCuller : public QuadSink {
18 public: 19 public:
19 QuadCuller(QuadList* quad_list, 20 QuadCuller(QuadList* quad_list,
20 SharedQuadStateList* shared_quad_state_list, 21 SharedQuadStateList* shared_quad_state_list,
21 const LayerImpl* layer, 22 const LayerImpl* layer,
22 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>& 23 const OcclusionTracker<LayerImpl>& occlusion_tracker,
23 occlusion_tracker,
24 bool show_culling_with_debug_border_quads, 24 bool show_culling_with_debug_border_quads,
25 bool for_surface); 25 bool for_surface);
26 virtual ~QuadCuller() {} 26 virtual ~QuadCuller() {}
27 27
28 // QuadSink implementation. 28 // QuadSink implementation.
29 virtual SharedQuadState* UseSharedQuadState( 29 virtual SharedQuadState* UseSharedQuadState(
30 scoped_ptr<SharedQuadState> shared_quad_state) OVERRIDE; 30 scoped_ptr<SharedQuadState> shared_quad_state) OVERRIDE;
31 virtual bool Append(scoped_ptr<DrawQuad> draw_quad, 31 virtual bool Append(scoped_ptr<DrawQuad> draw_quad,
32 AppendQuadsData* append_quads_data) OVERRIDE; 32 AppendQuadsData* append_quads_data) OVERRIDE;
33 33
34 private: 34 private:
35 QuadList* quad_list_; 35 QuadList* quad_list_;
36 SharedQuadStateList* shared_quad_state_list_; 36 SharedQuadStateList* shared_quad_state_list_;
37 const LayerImpl* layer_; 37 const LayerImpl* layer_;
38 const OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>& occlusion_tracker_; 38 const OcclusionTracker<LayerImpl>& occlusion_tracker_;
39 39
40 SharedQuadState* current_shared_quad_state_; 40 SharedQuadState* current_shared_quad_state_;
41 bool show_culling_with_debug_border_quads_; 41 bool show_culling_with_debug_border_quads_;
42 bool for_surface_; 42 bool for_surface_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(QuadCuller); 44 DISALLOW_COPY_AND_ASSIGN(QuadCuller);
45 }; 45 };
46 46
47 } // namespace cc 47 } // namespace cc
48 48
49 #endif // CC_TREES_QUAD_CULLER_H_ 49 #endif // CC_TREES_QUAD_CULLER_H_
OLDNEW
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698