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

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

Issue 187043004: cc: Remove impl_transform_is_unknown argument from OcclusionTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusionparams2: perftest 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/layer_tree_host_impl.cc ('k') | cc/trees/occlusion_tracker.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_OCCLUSION_TRACKER_H_ 5 #ifndef CC_TREES_OCCLUSION_TRACKER_H_
6 #define CC_TREES_OCCLUSION_TRACKER_H_ 6 #define CC_TREES_OCCLUSION_TRACKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Called at the end of each step in the LayerIterator's front-to-back 42 // Called at the end of each step in the LayerIterator's front-to-back
43 // traversal. 43 // traversal.
44 void LeaveLayer(const LayerIteratorPosition<LayerType>& layer_iterator); 44 void LeaveLayer(const LayerIteratorPosition<LayerType>& layer_iterator);
45 45
46 // Returns true if the given rect in content space for a layer is fully 46 // Returns true if the given rect in content space for a layer is fully
47 // occluded in either screen space or the layer's target surface. 47 // occluded in either screen space or the layer's target surface.
48 // |render_target| is the contributing layer's render target, and 48 // |render_target| is the contributing layer's render target, and
49 // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that. 49 // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that.
50 bool Occluded(const LayerType* render_target, 50 bool Occluded(const LayerType* render_target,
51 const gfx::Rect& content_rect, 51 const gfx::Rect& content_rect,
52 const gfx::Transform& draw_transform, 52 const gfx::Transform& draw_transform) const;
53 bool impl_draw_transform_is_unknown) const;
54 53
55 // Gives an unoccluded sub-rect of |content_rect| in the content space of a 54 // Gives an unoccluded sub-rect of |content_rect| in the content space of a
56 // layer. Used when considering occlusion for a layer that paints/draws 55 // layer. Used when considering occlusion for a layer that paints/draws
57 // something. |render_target| is the contributing layer's render target, and 56 // something. |render_target| is the contributing layer's render target, and
58 // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that. 57 // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that.
59 gfx::Rect UnoccludedContentRect( 58 gfx::Rect UnoccludedContentRect(const LayerType* render_target,
60 const LayerType* render_target, 59 const gfx::Rect& content_rect,
61 const gfx::Rect& content_rect, 60 const gfx::Transform& draw_transform) const;
62 const gfx::Transform& draw_transform,
63 bool impl_draw_transform_is_unknown) const;
64 61
65 // Gives an unoccluded sub-rect of |content_rect| in the content space of the 62 // Gives an unoccluded sub-rect of |content_rect| in the content space of the
66 // render_target owned by the layer. Used when considering occlusion for a 63 // render_target owned by the layer. Used when considering occlusion for a
67 // contributing surface that is rendering into another target. 64 // contributing surface that is rendering into another target.
68 gfx::Rect UnoccludedContributingSurfaceContentRect( 65 gfx::Rect UnoccludedContributingSurfaceContentRect(
69 const LayerType* layer, 66 const LayerType* layer,
70 bool for_replica, 67 bool for_replica,
71 const gfx::Rect& content_rect) const; 68 const gfx::Rect& content_rect) const;
72 69
73 // Report operations for recording overdraw metrics. 70 // Report operations for recording overdraw metrics.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 }; 150 };
154 151
155 #if !defined(COMPILER_MSVC) 152 #if !defined(COMPILER_MSVC)
156 extern template class OcclusionTracker<Layer>; 153 extern template class OcclusionTracker<Layer>;
157 extern template class OcclusionTracker<LayerImpl>; 154 extern template class OcclusionTracker<LayerImpl>;
158 #endif 155 #endif
159 156
160 } // namespace cc 157 } // namespace cc
161 158
162 #endif // CC_TREES_OCCLUSION_TRACKER_H_ 159 #endif // CC_TREES_OCCLUSION_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698