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

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

Issue 1196553009: Revert "cc: Make tiling interest rect calc based on viewport." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert extra bools. 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/browser/renderer_host/render_process_host_impl.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) 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = 357 settings.invert_viewport_scroll_order =
358 cmd->HasSwitch(switches::kInvertViewportScrollOrder); 358 cmd->HasSwitch(switches::kInvertViewportScrollOrder);
359 359
360 if (cmd->HasSwitch(cc::switches::kMaxTilesForInterestArea)) {
361 int max_tiles_for_interest_area;
362 if (GetSwitchValueAsInt(*cmd,
363 cc::switches::kMaxTilesForInterestArea,
364 1, std::numeric_limits<int>::max(),
365 &max_tiles_for_interest_area))
366 settings.max_tiles_for_interest_area = max_tiles_for_interest_area;
367 }
368
360 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) { 369 if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) {
361 int max_unused_resource_memory_percentage; 370 int max_unused_resource_memory_percentage;
362 if (GetSwitchValueAsInt( 371 if (GetSwitchValueAsInt(
363 *cmd, 372 *cmd,
364 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, 373 cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
365 0, 100, 374 0, 100,
366 &max_unused_resource_memory_percentage)) { 375 &max_unused_resource_memory_percentage)) {
367 settings.max_unused_resource_memory_percentage = 376 settings.max_unused_resource_memory_percentage =
368 max_unused_resource_memory_percentage; 377 max_unused_resource_memory_percentage;
369 } 378 }
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 return; 1008 return;
1000 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1009 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1001 } 1010 }
1002 1011
1003 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1012 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1004 uint32_t surface_id_namespace) { 1013 uint32_t surface_id_namespace) {
1005 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1014 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1006 } 1015 }
1007 1016
1008 } // namespace content 1017 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698