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

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

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck2: withoutandroidchange Created 5 years, 11 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698