From bdb68b9997cf50d1ad4803ca830ae4dc4530e502 Mon Sep 17 00:00:00 2001 From: "jbauman@chromium.org" <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 8 Nov 2013 09:33:44 +0000 Subject: 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 --- ui/aura/root_window.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui/aura/root_window.cc') 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(), -- cgit v1.1