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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2776213003: Enable low resoltuion tiling by default for low end device only
Patch Set: Created 3 years, 9 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 | « no previous file | 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 c54182c518e91c7e4310151538ee6577e78bc120..fa797f3367a5d2c3732b3c714de6fa7dd936c5bb 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -427,8 +427,8 @@ cc::LayerTreeSettings RenderWidgetCompositor::GenerateLayerTreeSettings(
settings.renderer_settings.should_clear_root_render_pass =
!using_synchronous_compositor;
- // TODO(danakj): Only do this on low end devices.
- settings.create_low_res_tiling = true;
+ if (base::SysInfo::IsLowEndDevice())
+ settings.create_low_res_tiling = true;
#else // defined(OS_ANDROID)
#if !defined(OS_MACOSX)
if (ui::IsOverlayScrollbarEnabled()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698