OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |