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

Side by Side Diff: ui/compositor/compositor.cc

Issue 917763003: cc: Move occlusion debug rects into the debug layer borders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: occlusiondebugrects: reviewed Created 5 years, 10 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 settings.initial_debug_state.show_paint_rects = 121 settings.initial_debug_state.show_paint_rects =
122 command_line->HasSwitch(switches::kUIShowPaintRects); 122 command_line->HasSwitch(switches::kUIShowPaintRects);
123 settings.initial_debug_state.show_property_changed_rects = 123 settings.initial_debug_state.show_property_changed_rects =
124 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); 124 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects);
125 settings.initial_debug_state.show_surface_damage_rects = 125 settings.initial_debug_state.show_surface_damage_rects =
126 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); 126 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects);
127 settings.initial_debug_state.show_screen_space_rects = 127 settings.initial_debug_state.show_screen_space_rects =
128 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); 128 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects);
129 settings.initial_debug_state.show_replica_screen_space_rects = 129 settings.initial_debug_state.show_replica_screen_space_rects =
130 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); 130 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects);
131 settings.initial_debug_state.show_occluding_rects =
132 command_line->HasSwitch(cc::switches::kUIShowOccludingRects);
133 settings.initial_debug_state.show_non_occluding_rects =
134 command_line->HasSwitch(cc::switches::kUIShowNonOccludingRects);
135 131
136 settings.initial_debug_state.SetRecordRenderingStats( 132 settings.initial_debug_state.SetRecordRenderingStats(
137 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); 133 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
138 134
139 settings.impl_side_painting = IsUIImplSidePaintingEnabled(); 135 settings.impl_side_painting = IsUIImplSidePaintingEnabled();
140 settings.use_zero_copy = IsUIZeroCopyEnabled(); 136 settings.use_zero_copy = IsUIZeroCopyEnabled();
141 settings.hud_typeface = ui::GetHudTypeface(); 137 settings.hud_typeface = ui::GetHudTypeface();
142 138
143 base::TimeTicks before_create = base::TimeTicks::Now(); 139 base::TimeTicks before_create = base::TimeTicks::Now();
144 if (compositor_thread_loop_.get()) { 140 if (compositor_thread_loop_.get()) {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 observer_list_, 399 observer_list_,
404 OnCompositingLockStateChanged(this)); 400 OnCompositingLockStateChanged(this));
405 } 401 }
406 402
407 void Compositor::CancelCompositorLock() { 403 void Compositor::CancelCompositorLock() {
408 if (compositor_lock_) 404 if (compositor_lock_)
409 compositor_lock_->CancelLock(); 405 compositor_lock_->CancelLock();
410 } 406 }
411 407
412 } // namespace ui 408 } // namespace ui
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698