OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 draw_result = DRAW_ABORTED_MISSING_HIGH_RES_CONTENT; | 868 draw_result = DRAW_ABORTED_MISSING_HIGH_RES_CONTENT; |
869 } | 869 } |
870 | 870 |
871 occlusion_tracker.LeaveLayer(it); | 871 occlusion_tracker.LeaveLayer(it); |
872 } | 872 } |
873 | 873 |
874 if (have_copy_request || | 874 if (have_copy_request || |
875 output_surface_->capabilities().draw_and_swap_full_viewport_every_frame) | 875 output_surface_->capabilities().draw_and_swap_full_viewport_every_frame) |
876 draw_result = DRAW_SUCCESS; | 876 draw_result = DRAW_SUCCESS; |
877 | 877 |
878 #if DCHECK_IS_ON | 878 #if DCHECK_IS_ON() |
879 for (const auto& render_pass : frame->render_passes) { | 879 for (const auto& render_pass : frame->render_passes) { |
880 for (const auto& quad : render_pass->quad_list) | 880 for (const auto& quad : render_pass->quad_list) |
881 DCHECK(quad->shared_quad_state); | 881 DCHECK(quad->shared_quad_state); |
882 DCHECK(frame->render_passes_by_id.find(render_pass->id) != | 882 DCHECK(frame->render_passes_by_id.find(render_pass->id) != |
883 frame->render_passes_by_id.end()); | 883 frame->render_passes_by_id.end()); |
884 } | 884 } |
885 #endif | 885 #endif |
886 DCHECK(frame->render_passes.back()->output_rect.origin().IsOrigin()); | 886 DCHECK(frame->render_passes.back()->output_rect.origin().IsOrigin()); |
887 | 887 |
888 if (!active_tree_->has_transparent_background()) { | 888 if (!active_tree_->has_transparent_background()) { |
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3501 } | 3501 } |
3502 | 3502 |
3503 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3503 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3504 std::vector<PictureLayerImpl*>::iterator it = | 3504 std::vector<PictureLayerImpl*>::iterator it = |
3505 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3505 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3506 DCHECK(it != picture_layers_.end()); | 3506 DCHECK(it != picture_layers_.end()); |
3507 picture_layers_.erase(it); | 3507 picture_layers_.erase(it); |
3508 } | 3508 } |
3509 | 3509 |
3510 } // namespace cc | 3510 } // namespace cc |
OLD | NEW |