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

Unified Diff: content/browser/renderer_host/compositor_impl_android.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
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index bcdf99cde87f7a8fd4b56515e98c63a8958cfec9..c5ad78c78049253b41c23423f6b5dc484eb88304 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -411,12 +411,12 @@ void CompositorImpl::SetVisible(bool visible) {
needs_composite_ = false;
pending_swapbuffers_ = 0;
cc::LayerTreeSettings settings;
- settings.refresh_rate = 60.0;
+ settings.renderer_settings.refresh_rate = 60.0;
+ settings.renderer_settings.allow_antialiasing = false;
+ settings.renderer_settings.highp_threshold_min = 2048;
settings.impl_side_painting = false;
- settings.allow_antialiasing = false;
settings.calculate_top_controls_position = false;
settings.top_controls_height = 0.f;
- settings.highp_threshold_min = 2048;
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
settings.initial_debug_state.SetRecordRenderingStats(
@@ -563,6 +563,7 @@ void CompositorImpl::CreateOutputSurface(bool fallback) {
if (manager) {
display_client_.reset(
new OnscreenDisplayClient(real_output_surface.Pass(), manager,
+ host_->settings().renderer_settings,
base::MessageLoopProxy::current()));
scoped_ptr<SurfaceDisplayOutputSurface> surface_output_surface(
new SurfaceDisplayOutputSurface(manager, surface_id_allocator_.get(),
« no previous file with comments | « content/browser/compositor/onscreen_display_client.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698