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

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: Added new about_flag to histograms.xml 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
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | 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) 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 const int kMinSlowDownScaleFactor = 0; 355 const int kMinSlowDownScaleFactor = 0;
356 const int kMaxSlowDownScaleFactor = INT_MAX; 356 const int kMaxSlowDownScaleFactor = INT_MAX;
357 GetSwitchValueAsInt( 357 GetSwitchValueAsInt(
358 *cmd, 358 *cmd,
359 cc::switches::kSlowDownRasterScaleFactor, 359 cc::switches::kSlowDownRasterScaleFactor,
360 kMinSlowDownScaleFactor, 360 kMinSlowDownScaleFactor,
361 kMaxSlowDownScaleFactor, 361 kMaxSlowDownScaleFactor,
362 &settings.initial_debug_state.slow_down_raster_scale_factor); 362 &settings.initial_debug_state.slow_down_raster_scale_factor);
363 } 363 }
364 364
365 settings.invert_viewport_scroll_order =
366 cmd->HasSwitch(switches::kInvertViewportScrollOrder);
367
365 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) { 368 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) {
366 int max_unused_resource_memory_percentage; 369 int max_unused_resource_memory_percentage;
367 if (GetSwitchValueAsInt( 370 if (GetSwitchValueAsInt(
368 *cmd, 371 *cmd,
369 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, 372 cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
370 0, 100, 373 0, 100,
371 &max_unused_resource_memory_percentage)) { 374 &max_unused_resource_memory_percentage)) {
372 settings.max_unused_resource_memory_percentage = 375 settings.max_unused_resource_memory_percentage =
373 max_unused_resource_memory_percentage; 376 max_unused_resource_memory_percentage;
374 } 377 }
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 return; 976 return;
974 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 977 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
975 } 978 }
976 979
977 void RenderWidgetCompositor::SetSurfaceIdNamespace( 980 void RenderWidgetCompositor::SetSurfaceIdNamespace(
978 uint32_t surface_id_namespace) { 981 uint32_t surface_id_namespace) {
979 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 982 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
980 } 983 }
981 984
982 } // namespace content 985 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698