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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 579ee33af6cf888588cdfe22a4046e559f0ed823..38d387d0258536f497f69e10a7dd0b2aef00e949 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -357,6 +357,15 @@ void RenderWidgetCompositor::Initialize() {
settings.invert_viewport_scroll_order =
cmd->HasSwitch(switches::kInvertViewportScrollOrder);
+ if (cmd->HasSwitch(cc::switches::kMaxTilesForInterestArea)) {
+ int max_tiles_for_interest_area;
+ if (GetSwitchValueAsInt(*cmd,
+ cc::switches::kMaxTilesForInterestArea,
+ 1, std::numeric_limits<int>::max(),
+ &max_tiles_for_interest_area))
+ settings.max_tiles_for_interest_area = max_tiles_for_interest_area;
+ }
+
if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) {
int max_unused_resource_memory_percentage;
if (GetSwitchValueAsInt(
« 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