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

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

Issue 205503002: cc: Apply occlusion before creating quads in RenderSurfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: append-rendersurface: headers 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/test/mock_quad_culler.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"
(...skipping 12 matching lines...) Expand all
23 const OcclusionTracker<LayerImpl>& occlusion_tracker, 23 const OcclusionTracker<LayerImpl>& occlusion_tracker,
24 bool for_surface); 24 bool for_surface);
25 virtual ~QuadCuller() {} 25 virtual ~QuadCuller() {}
26 26
27 // QuadSink implementation. 27 // QuadSink implementation.
28 virtual SharedQuadState* UseSharedQuadState( 28 virtual SharedQuadState* UseSharedQuadState(
29 scoped_ptr<SharedQuadState> shared_quad_state) OVERRIDE; 29 scoped_ptr<SharedQuadState> shared_quad_state) OVERRIDE;
30 virtual gfx::Rect UnoccludedContentRect(const gfx::Rect& content_rect, 30 virtual gfx::Rect UnoccludedContentRect(const gfx::Rect& content_rect,
31 const gfx::Transform& draw_transform) 31 const gfx::Transform& draw_transform)
32 OVERRIDE; 32 OVERRIDE;
33 virtual gfx::Rect UnoccludedContributingSurfaceContentRect(
34 const gfx::Rect& content_rect,
35 const gfx::Transform& draw_transform) OVERRIDE;
33 virtual bool MaybeAppend(scoped_ptr<DrawQuad> draw_quad) OVERRIDE; 36 virtual bool MaybeAppend(scoped_ptr<DrawQuad> draw_quad) OVERRIDE;
34 virtual void Append(scoped_ptr<DrawQuad> draw_quad) OVERRIDE; 37 virtual void Append(scoped_ptr<DrawQuad> draw_quad) OVERRIDE;
35 38
36 private: 39 private:
37 QuadList* quad_list_; 40 QuadList* quad_list_;
38 SharedQuadStateList* shared_quad_state_list_; 41 SharedQuadStateList* shared_quad_state_list_;
39 const LayerImpl* layer_; 42 const LayerImpl* layer_;
40 const OcclusionTracker<LayerImpl>& occlusion_tracker_; 43 const OcclusionTracker<LayerImpl>& occlusion_tracker_;
41 44
42 SharedQuadState* current_shared_quad_state_; 45 SharedQuadState* current_shared_quad_state_;
43 bool for_surface_; 46 bool for_surface_;
44 47
45 DISALLOW_COPY_AND_ASSIGN(QuadCuller); 48 DISALLOW_COPY_AND_ASSIGN(QuadCuller);
46 }; 49 };
47 50
48 } // namespace cc 51 } // namespace cc
49 52
50 #endif // CC_TREES_QUAD_CULLER_H_ 53 #endif // CC_TREES_QUAD_CULLER_H_
OLDNEW
« no previous file with comments | « cc/test/mock_quad_culler.cc ('k') | cc/trees/quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698