summaryrefslogtreecommitdiffstats
path: root/content/browser/aura
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 09:33:44 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 09:33:44 +0000
commitbdb68b9997cf50d1ad4803ca830ae4dc4530e502 (patch)
tree6acd291c6ff5c1c1c0a719ff0cd321ee2ae8095c /content/browser/aura
parent683ef50ad3bd599cd09a52f11900cfd484fd3407 (diff)
downloadchromium_src-bdb68b9997cf50d1ad4803ca830ae4dc4530e502.zip
chromium_src-bdb68b9997cf50d1ad4803ca830ae4dc4530e502.tar.gz
chromium_src-bdb68b9997cf50d1ad4803ca830ae4dc4530e502.tar.bz2
Use software renderer for windows with an initial size less than 64x64
If the width or height of a window is less than 64 pixels then some AMD drivers have problems presenting from them, so composite those windows in software. BUG=286609 Review URL: https://codereview.chromium.org/59913008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/aura')
-rw-r--r--content/browser/aura/gpu_process_transport_factory.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/aura/gpu_process_transport_factory.cc b/content/browser/aura/gpu_process_transport_factory.cc
index 4b8e8ef..d7a75d8 100644
--- a/content/browser/aura/gpu_process_transport_factory.cc
+++ b/content/browser/aura/gpu_process_transport_factory.cc
@@ -186,7 +186,9 @@ scoped_ptr<cc::OutputSurface> GpuProcessTransportFactory::CreateOutputSurface(
scoped_refptr<ContextProviderCommandBuffer> context_provider;
CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(switches::kUIEnableSoftwareCompositing)) {
+ if (!command_line->HasSwitch(switches::kUIEnableSoftwareCompositing) &&
+ (!compositor->use_software_renderer() ||
+ ui::Compositor::WasInitializedWithThread())) {
context_provider = ContextProviderCommandBuffer::Create(
GpuProcessTransportFactory::CreateContextCommon(data->surface_id),
"Compositor");