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

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

Issue 168423002: Revert of Remove --enable-per-tile-painting and --ui-enable-per-tile-painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 cc::LayerTreeSettings settings; 207 cc::LayerTreeSettings settings;
208 settings.refresh_rate = 208 settings.refresh_rate =
209 ContextFactory::GetInstance()->DoesCreateTestContexts() 209 ContextFactory::GetInstance()->DoesCreateTestContexts()
210 ? kTestRefreshRate 210 ? kTestRefreshRate
211 : kDefaultRefreshRate; 211 : kDefaultRefreshRate;
212 settings.deadline_scheduling_enabled = 212 settings.deadline_scheduling_enabled =
213 switches::IsUIDeadlineSchedulingEnabled(); 213 switches::IsUIDeadlineSchedulingEnabled();
214 settings.partial_swap_enabled = 214 settings.partial_swap_enabled =
215 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap); 215 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap);
216 #if defined(OS_CHROMEOS) 216 settings.per_tile_painting_enabled =
217 settings.per_tile_painting_enabled = true; 217 command_line->HasSwitch(cc::switches::kUIEnablePerTilePainting);
218 #endif
219 218
220 // These flags should be mirrored by renderer versions in content/renderer/. 219 // These flags should be mirrored by renderer versions in content/renderer/.
221 settings.initial_debug_state.show_debug_borders = 220 settings.initial_debug_state.show_debug_borders =
222 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); 221 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders);
223 settings.initial_debug_state.show_fps_counter = 222 settings.initial_debug_state.show_fps_counter =
224 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); 223 command_line->HasSwitch(cc::switches::kUIShowFPSCounter);
225 settings.initial_debug_state.show_layer_animation_bounds_rects = 224 settings.initial_debug_state.show_layer_animation_bounds_rects =
226 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); 225 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds);
227 settings.initial_debug_state.show_paint_rects = 226 settings.initial_debug_state.show_paint_rects =
228 command_line->HasSwitch(switches::kUIShowPaintRects); 227 command_line->HasSwitch(switches::kUIShowPaintRects);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // CompositorObservers to be notified before starting another 559 // CompositorObservers to be notified before starting another
561 // draw cycle. 560 // draw cycle.
562 ScheduleDraw(); 561 ScheduleDraw();
563 } 562 }
564 FOR_EACH_OBSERVER(CompositorObserver, 563 FOR_EACH_OBSERVER(CompositorObserver,
565 observer_list_, 564 observer_list_,
566 OnCompositingEnded(this)); 565 OnCompositingEnded(this));
567 } 566 }
568 567
569 } // namespace ui 568 } // 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