| 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 #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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 layer_, | 92 layer_, |
| 93 false, | 93 false, |
| 94 draw_quad->rect, | 94 draw_quad->rect, |
| 95 &has_occlusion_from_outside_target_surface); | 95 &has_occlusion_from_outside_target_surface); |
| 96 } else { | 96 } else { |
| 97 culled_rect = occlusion_tracker_.UnoccludedContentRect( | 97 culled_rect = occlusion_tracker_.UnoccludedContentRect( |
| 98 layer_->render_target(), | 98 layer_->render_target(), |
| 99 draw_quad->rect, | 99 draw_quad->rect, |
| 100 draw_quad->quadTransform(), | 100 draw_quad->quadTransform(), |
| 101 impl_draw_transform_is_unknown, | 101 impl_draw_transform_is_unknown, |
| 102 draw_quad->isClipped(), | |
| 103 draw_quad->clipRect(), | |
| 104 &has_occlusion_from_outside_target_surface); | 102 &has_occlusion_from_outside_target_surface); |
| 105 } | 103 } |
| 106 | 104 |
| 107 append_quads_data->had_occlusion_from_outside_target_surface |= | 105 append_quads_data->had_occlusion_from_outside_target_surface |= |
| 108 has_occlusion_from_outside_target_surface; | 106 has_occlusion_from_outside_target_surface; |
| 109 | 107 |
| 110 return AppendQuadInternal(draw_quad.Pass(), | 108 return AppendQuadInternal(draw_quad.Pass(), |
| 111 culled_rect, | 109 culled_rect, |
| 112 quad_list_, | 110 quad_list_, |
| 113 occlusion_tracker_, | 111 occlusion_tracker_, |
| 114 layer_, | 112 layer_, |
| 115 show_culling_with_debug_border_quads_); | 113 show_culling_with_debug_border_quads_); |
| 116 } | 114 } |
| 117 | 115 |
| 118 } // namespace cc | 116 } // namespace cc |
| OLD | NEW |