diff options
Diffstat (limited to 'cc/trees/occlusion_tracker.h')
-rw-r--r-- | cc/trees/occlusion_tracker.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/trees/occlusion_tracker.h b/cc/trees/occlusion_tracker.h index 68418c7..85334bc 100644 --- a/cc/trees/occlusion_tracker.h +++ b/cc/trees/occlusion_tracker.h @@ -32,7 +32,7 @@ class RenderSurface; template <typename LayerType, typename RenderSurfaceType> class CC_EXPORT OcclusionTrackerBase { public: - OcclusionTrackerBase(gfx::Rect screen_space_clip_rect, + OcclusionTrackerBase(const gfx::Rect& screen_space_clip_rect, bool record_metrics_for_frame); ~OcclusionTrackerBase(); @@ -48,7 +48,7 @@ class CC_EXPORT OcclusionTrackerBase { // |render_target| is the contributing layer's render target, and // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that. bool Occluded(const LayerType* render_target, - gfx::Rect content_rect, + const gfx::Rect& content_rect, const gfx::Transform& draw_transform, bool impl_draw_transform_is_unknown) const; @@ -58,7 +58,7 @@ class CC_EXPORT OcclusionTrackerBase { // |draw_transform| and |impl_draw_transform_is_unknown| are relative to that. gfx::Rect UnoccludedContentRect( const LayerType* render_target, - gfx::Rect content_rect, + const gfx::Rect& content_rect, const gfx::Transform& draw_transform, bool impl_draw_transform_is_unknown) const; @@ -68,7 +68,7 @@ class CC_EXPORT OcclusionTrackerBase { gfx::Rect UnoccludedContributingSurfaceContentRect( const LayerType* layer, bool for_replica, - gfx::Rect content_rect) const; + const gfx::Rect& content_rect) const; // Report operations for recording overdraw metrics. OverdrawMetrics* overdraw_metrics() const { |