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

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

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/occlusion_tracker_unittest.cc ('k') | no next file » | 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 #include "cc/trees/quad_culler.h" 5 #include "cc/trees/quad_culler.h"
6 6
7 #include "cc/debug/debug_colors.h" 7 #include "cc/debug/debug_colors.h"
8 #include "cc/debug/overdraw_metrics.h" 8 #include "cc/debug/overdraw_metrics.h"
9 #include "cc/layers/append_quads_data.h" 9 #include "cc/layers/append_quads_data.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return keep_quad; 77 return keep_quad;
78 } 78 }
79 79
80 bool QuadCuller::Append(scoped_ptr<DrawQuad> draw_quad, 80 bool QuadCuller::Append(scoped_ptr<DrawQuad> draw_quad,
81 AppendQuadsData* append_quads_data) { 81 AppendQuadsData* append_quads_data) {
82 DCHECK(draw_quad->shared_quad_state == current_shared_quad_state_); 82 DCHECK(draw_quad->shared_quad_state == current_shared_quad_state_);
83 DCHECK(!shared_quad_state_list_->empty()); 83 DCHECK(!shared_quad_state_list_->empty());
84 DCHECK(shared_quad_state_list_->back() == current_shared_quad_state_); 84 DCHECK(shared_quad_state_list_->back() == current_shared_quad_state_);
85 85
86 gfx::Rect culled_rect; 86 gfx::Rect culled_rect;
87 bool impl_draw_transform_is_unknown = false;
88
89 if (for_surface_) { 87 if (for_surface_) {
90 culled_rect = occlusion_tracker_.UnoccludedContributingSurfaceContentRect( 88 culled_rect = occlusion_tracker_.UnoccludedContributingSurfaceContentRect(
91 layer_, false, draw_quad->visible_rect); 89 layer_, false, draw_quad->visible_rect);
92 } else { 90 } else {
93 culled_rect = occlusion_tracker_.UnoccludedContentRect( 91 culled_rect =
94 layer_->render_target(), 92 occlusion_tracker_.UnoccludedContentRect(layer_->render_target(),
95 draw_quad->visible_rect, 93 draw_quad->visible_rect,
96 draw_quad->quadTransform(), 94 draw_quad->quadTransform());
97 impl_draw_transform_is_unknown);
98 } 95 }
99 96
100 return AppendQuadInternal(draw_quad.Pass(), 97 return AppendQuadInternal(draw_quad.Pass(),
101 culled_rect, 98 culled_rect,
102 quad_list_, 99 quad_list_,
103 occlusion_tracker_, 100 occlusion_tracker_,
104 layer_, 101 layer_,
105 show_culling_with_debug_border_quads_); 102 show_culling_with_debug_border_quads_);
106 } 103 }
107 104
108 } // namespace cc 105 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698