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

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

Issue 675083002: Add cc::RendererSettings for use in with cc::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/compositor_impl_android.cc ('k') | ui/compositor/compositor.h » ('j') | 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 29d3bcf05feed4d11a40f3a6c90dddc89dd72aff..b5a8f65af9ee134f6f0ea202c982cc4239ef59f0 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -275,7 +275,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
settings.use_pinch_virtual_viewport =
cmd->HasSwitch(cc::switches::kEnablePinchVirtualViewport);
- settings.allow_antialiasing &=
+ settings.renderer_settings.allow_antialiasing &=
!cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing);
settings.single_thread_proxy_scheduler =
!cmd->HasSwitch(switches::kDisableSingleThreadProxyScheduler);
@@ -363,7 +363,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
settings.scrollbar_fade_duration_ms = 300;
settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128);
}
- settings.highp_threshold_min = 2048;
+ settings.renderer_settings.highp_threshold_min = 2048;
// Android WebView handles root layer flings itself.
settings.ignore_root_layer_flings =
synchronous_compositor_factory;
@@ -373,7 +373,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
base::SysInfo::IsLowEndDevice() && !synchronous_compositor_factory;
// RGBA_4444 textures are only enabled for low end devices
// and are disabled for Android WebView as it doesn't support the format.
- settings.use_rgba_4444_textures = is_low_end_device;
+ settings.renderer_settings.use_rgba_4444_textures = is_low_end_device;
if (is_low_end_device) {
// On low-end we want to be very carefull about killing other
// apps. So initially we use 50% more memory to avoid flickering
@@ -386,7 +386,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
settings.max_memory_for_prepaint_percentage = 50;
}
// Webview does not own the surface so should not clear it.
- settings.should_clear_root_render_pass =
+ settings.renderer_settings.should_clear_root_render_pass =
!synchronous_compositor_factory;
// TODO(danakj): Only do this on low end devices.
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698