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( |