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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 settings.verify_property_trees = 326 settings.verify_property_trees =
327 cmd->HasSwitch(cc::switches::kEnablePropertyTreeVerification); 327 cmd->HasSwitch(cc::switches::kEnablePropertyTreeVerification);
328 settings.renderer_settings.allow_antialiasing &= 328 settings.renderer_settings.allow_antialiasing &=
329 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing); 329 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing);
330 // The means the renderer compositor has 2 possible modes: 330 // The means the renderer compositor has 2 possible modes:
331 // - Threaded compositing with a scheduler. 331 // - Threaded compositing with a scheduler.
332 // - Single threaded compositing without a scheduler (for layout tests only). 332 // - Single threaded compositing without a scheduler (for layout tests only).
333 // Using the scheduler in layout tests introduces additional composite steps 333 // Using the scheduler in layout tests introduces additional composite steps
334 // that create flakiness. 334 // that create flakiness.
335 settings.single_thread_proxy_scheduler = false; 335 settings.single_thread_proxy_scheduler = false;
336 settings.enable_partial_raster =
337 cmd->HasSwitch(cc::switches::kEnablePartialRaster);
336 338
337 // These flags should be mirrored by UI versions in ui/compositor/. 339 // These flags should be mirrored by UI versions in ui/compositor/.
338 settings.initial_debug_state.show_debug_borders = 340 settings.initial_debug_state.show_debug_borders =
339 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders); 341 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders);
340 settings.initial_debug_state.show_fps_counter = 342 settings.initial_debug_state.show_fps_counter =
341 cmd->HasSwitch(cc::switches::kShowFPSCounter); 343 cmd->HasSwitch(cc::switches::kShowFPSCounter);
342 settings.initial_debug_state.show_layer_animation_bounds_rects = 344 settings.initial_debug_state.show_layer_animation_bounds_rects =
343 cmd->HasSwitch(cc::switches::kShowLayerAnimationBounds); 345 cmd->HasSwitch(cc::switches::kShowLayerAnimationBounds);
344 settings.initial_debug_state.show_paint_rects = 346 settings.initial_debug_state.show_paint_rects =
345 cmd->HasSwitch(switches::kShowPaintRects); 347 cmd->HasSwitch(switches::kShowPaintRects);
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 blink::WebWidget::RenderEvent, frameId, webEvents); 1007 blink::WebWidget::RenderEvent, frameId, webEvents);
1006 } 1008 }
1007 } 1009 }
1008 1010
1009 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1011 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1010 uint32_t surface_id_namespace) { 1012 uint32_t surface_id_namespace) {
1011 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1013 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1012 } 1014 }
1013 1015
1014 } // namespace content 1016 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698