Revert 230981 "Make TRANSPARENT windows be layered windows on wi..."
> Make TRANSPARENT windows be layered windows on win aura
>
> This builds on jbauman's patch to plumb use_software_compositor
> from here: https://codereview.chromium.org/23621054/
>
> The motivation here is that we currently have very different
> event, focus, activation paths on DWM vs. classic because of the
> differences between when we use top-level windows and when we
> don't. With this change, all translucent (i.e. shaped) windows
> are converted to being top level (always), and are rendered by
> the software compositor and are converted to layered windows for
> rendering.
>
> BUG=293218 and many other focus/activation bugs
>
> Review URL: https://codereview.chromium.org/26888006
BUG=312277,313349,313462
[email protected],[email protected],[email protected]
Review URL: https://codereview.chromium.org/56623002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232511 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 0605f62c..1061424 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -231,8 +231,7 @@
namespace ui {
-Compositor::Compositor(bool use_software_renderer,
- gfx::AcceleratedWidget widget)
+Compositor::Compositor(gfx::AcceleratedWidget widget)
: root_layer_(NULL),
widget_(widget),
posted_swaps_(new PostedSwapQueue()),
@@ -245,8 +244,7 @@
defer_draw_scheduling_(false),
waiting_on_compositing_end_(false),
draw_on_compositing_end_(false),
- schedule_draw_factory_(this),
- use_software_renderer_(use_software_renderer) {
+ schedule_draw_factory_(this) {
DCHECK(g_compositor_initialized)
<< "Compositor::Initialize must be called before creating a Compositor.";