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

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: 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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 draw_result = DRAW_ABORTED_MISSING_HIGH_RES_CONTENT; 864 draw_result = DRAW_ABORTED_MISSING_HIGH_RES_CONTENT;
865 } 865 }
866 866
867 occlusion_tracker.LeaveLayer(it); 867 occlusion_tracker.LeaveLayer(it);
868 } 868 }
869 869
870 if (have_copy_request || 870 if (have_copy_request ||
871 output_surface_->capabilities().draw_and_swap_full_viewport_every_frame) 871 output_surface_->capabilities().draw_and_swap_full_viewport_every_frame)
872 draw_result = DRAW_SUCCESS; 872 draw_result = DRAW_SUCCESS;
873 873
874 #if DCHECK_IS_ON 874 #if !DCHECK_IS_OFF
875 for (const auto& render_pass : frame->render_passes) { 875 for (const auto& render_pass : frame->render_passes) {
876 for (const auto& quad : render_pass->quad_list) 876 for (const auto& quad : render_pass->quad_list)
877 DCHECK(quad->shared_quad_state); 877 DCHECK(quad->shared_quad_state);
878 DCHECK(frame->render_passes_by_id.find(render_pass->id) != 878 DCHECK(frame->render_passes_by_id.find(render_pass->id) !=
879 frame->render_passes_by_id.end()); 879 frame->render_passes_by_id.end());
880 } 880 }
881 #endif 881 #endif
882 DCHECK(frame->render_passes.back()->output_rect.origin().IsOrigin()); 882 DCHECK(frame->render_passes.back()->output_rect.origin().IsOrigin());
883 883
884 if (!active_tree_->has_transparent_background()) { 884 if (!active_tree_->has_transparent_background()) {
(...skipping 2593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 } 3478 }
3479 3479
3480 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3480 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3481 std::vector<PictureLayerImpl*>::iterator it = 3481 std::vector<PictureLayerImpl*>::iterator it =
3482 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3482 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3483 DCHECK(it != picture_layers_.end()); 3483 DCHECK(it != picture_layers_.end());
3484 picture_layers_.erase(it); 3484 picture_layers_.erase(it);
3485 } 3485 }
3486 3486
3487 } // namespace cc 3487 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698