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

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

Issue 1186623003: [SP] Turn off slimming paint by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge changes. Created 5 years, 6 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 settings.renderer_settings.disable_gpu_vsync = 227 settings.renderer_settings.disable_gpu_vsync =
228 cmd->HasSwitch(switches::kDisableGpuVsync); 228 cmd->HasSwitch(switches::kDisableGpuVsync);
229 settings.main_frame_before_activation_enabled = 229 settings.main_frame_before_activation_enabled =
230 cmd->HasSwitch(cc::switches::kEnableMainFrameBeforeActivation) && 230 cmd->HasSwitch(cc::switches::kEnableMainFrameBeforeActivation) &&
231 !cmd->HasSwitch(cc::switches::kDisableMainFrameBeforeActivation); 231 !cmd->HasSwitch(cc::switches::kDisableMainFrameBeforeActivation);
232 settings.report_overscroll_only_for_scrollable_axes = 232 settings.report_overscroll_only_for_scrollable_axes =
233 !compositor_deps_->IsElasticOverscrollEnabled(); 233 !compositor_deps_->IsElasticOverscrollEnabled();
234 settings.accelerated_animation_enabled = 234 settings.accelerated_animation_enabled =
235 !cmd->HasSwitch(cc::switches::kDisableThreadedAnimation); 235 !cmd->HasSwitch(cc::switches::kDisableThreadedAnimation);
236 settings.use_display_lists = cmd->HasSwitch(switches::kEnableSlimmingPaint) || 236 settings.use_display_lists = cmd->HasSwitch(switches::kEnableSlimmingPaint);
237 !cmd->HasSwitch(switches::kDisableSlimmingPaint);
238 if (cmd->HasSwitch(switches::kEnableCompositorAnimationTimelines)) { 237 if (cmd->HasSwitch(switches::kEnableCompositorAnimationTimelines)) {
239 settings.use_compositor_animation_timelines = true; 238 settings.use_compositor_animation_timelines = true;
240 blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true); 239 blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true);
241 } 240 }
242 241
243 settings.default_tile_size = CalculateDefaultTileSize(widget_); 242 settings.default_tile_size = CalculateDefaultTileSize(widget_);
244 if (cmd->HasSwitch(switches::kDefaultTileWidth)) { 243 if (cmd->HasSwitch(switches::kDefaultTileWidth)) {
245 int tile_width = 0; 244 int tile_width = 0;
246 GetSwitchValueAsInt(*cmd, 245 GetSwitchValueAsInt(*cmd,
247 switches::kDefaultTileWidth, 246 switches::kDefaultTileWidth,
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 return; 1000 return;
1002 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1001 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1003 } 1002 }
1004 1003
1005 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1004 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1006 uint32_t surface_id_namespace) { 1005 uint32_t surface_id_namespace) {
1007 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1006 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1008 } 1007 }
1009 1008
1010 } // namespace content 1009 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698