summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window.cc
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 /ui/aura/root_window.cc
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 'ui/aura/root_window.cc')
-rw-r--r--ui/aura/root_window.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 374ec07..419cd4a 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -155,7 +155,13 @@ RootWindow::RootWindow(const CreateParams& params)
set_dispatcher(this);
SetName("RootWindow");
- compositor_.reset(new ui::Compositor(host_->GetAcceleratedWidget()));
+ // Some GPUs have trouble drawing windows that are less than 64 pixels wide
+ // or tall, so force those windows to use the software renderer.
+ // http://crbug.com/286609
+ bool use_software_renderer =
+ params.initial_bounds.width() < 64 || params.initial_bounds.height() < 64;
+ compositor_.reset(
+ new ui::Compositor(use_software_renderer, host_->GetAcceleratedWidget()));
DCHECK(compositor_.get());
prop_.reset(new ui::ViewProp(host_->GetAcceleratedWidget(),