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

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

Issue 1146053009: Added experiment for changing viewport scroll ordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aelias review 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 const int kMinSlowDownScaleFactor = 0; 347 const int kMinSlowDownScaleFactor = 0;
348 const int kMaxSlowDownScaleFactor = INT_MAX; 348 const int kMaxSlowDownScaleFactor = INT_MAX;
349 GetSwitchValueAsInt( 349 GetSwitchValueAsInt(
350 *cmd, 350 *cmd,
351 cc::switches::kSlowDownRasterScaleFactor, 351 cc::switches::kSlowDownRasterScaleFactor,
352 kMinSlowDownScaleFactor, 352 kMinSlowDownScaleFactor,
353 kMaxSlowDownScaleFactor, 353 kMaxSlowDownScaleFactor,
354 &settings.initial_debug_state.slow_down_raster_scale_factor); 354 &settings.initial_debug_state.slow_down_raster_scale_factor);
355 } 355 }
356 356
357 settings.invert_viewport_scroll_order =
358 cmd->HasSwitch(switches::kInvertViewportScrollOrder);
359
357 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) { 360 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) {
358 int max_unused_resource_memory_percentage; 361 int max_unused_resource_memory_percentage;
359 if (GetSwitchValueAsInt( 362 if (GetSwitchValueAsInt(
360 *cmd, 363 *cmd,
361 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, 364 cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
362 0, 100, 365 0, 100,
363 &max_unused_resource_memory_percentage)) { 366 &max_unused_resource_memory_percentage)) {
364 settings.max_unused_resource_memory_percentage = 367 settings.max_unused_resource_memory_percentage =
365 max_unused_resource_memory_percentage; 368 max_unused_resource_memory_percentage;
366 } 369 }
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 return; 966 return;
964 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 967 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
965 } 968 }
966 969
967 void RenderWidgetCompositor::SetSurfaceIdNamespace( 970 void RenderWidgetCompositor::SetSurfaceIdNamespace(
968 uint32_t surface_id_namespace) { 971 uint32_t surface_id_namespace) {
969 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 972 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
970 } 973 }
971 974
972 } // namespace content 975 } // namespace content
OLDNEW
« content/public/common/content_switches.cc ('K') | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698