Commit fb32107d authored by Drew Davenport's avatar Drew Davenport Committed by Commit Bot

viz: Disable auto_resize_output_surface for Chrome OS

Disabling this prevents drawing the UI in the corner of an external
display at the internal display's size when closing the lid.

This makes the transition in this use case smoother, and also avoids
displaying uninitialized framebuffer contents on some gpus.

BUG=898524

Change-Id: Id23ef472ad7d7504c74644bd11186a4380e36f13
Reviewed-on: https://chromium-review.googlesource.com/c/1352709Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Commit-Queue: Drew Davenport <ddavenport@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611875}
parent 70e4265a
......@@ -50,6 +50,8 @@ RendererSettings CreateRendererSettings() {
#elif defined(OS_MACOSX)
renderer_settings.release_overlay_resources_after_gpu_query = true;
renderer_settings.auto_resize_output_surface = false;
#elif defined(OS_CHROMEOS)
renderer_settings.auto_resize_output_surface = false;
#endif
renderer_settings.tint_gl_composited_content =
command_line->HasSwitch(switches::kTintGlCompositedContent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment