Index: ui/views/mus/window_tree_host_mus.cc |
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc |
index 6edb53d08aa0e092ffc51caacfcb2ab293e336a2..ec1ab6edbcd952fc9090bda261aba6ba67b0e35e 100644 |
--- a/ui/views/mus/window_tree_host_mus.cc |
+++ b/ui/views/mus/window_tree_host_mus.cc |
@@ -4,11 +4,8 @@ |
#include "ui/views/mus/window_tree_host_mus.h" |
-#include "components/bitmap_uploader/bitmap_uploader.h" |
-#include "mojo/shell/public/interfaces/shell.mojom.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_event_dispatcher.h" |
-#include "ui/base/view_prop.h" |
#include "ui/events/event.h" |
#include "ui/views/mus/input_method_mus.h" |
#include "ui/views/mus/native_widget_mus.h" |
@@ -25,7 +22,8 @@ WindowTreeHostMus::WindowTreeHostMus(mojo::Shell* shell, |
mus::mojom::SurfaceType surface_type) |
: native_widget_(native_widget), |
show_state_(ui::PLATFORM_WINDOW_STATE_UNKNOWN) { |
- SetPlatformWindow(make_scoped_ptr(new PlatformWindowMus(this, window))); |
+ SetPlatformWindow( |
+ make_scoped_ptr(new PlatformWindowMus(this, shell, window))); |
// The location of events is already transformed, and there is no way to |
// correctly determine the reverse transform. So, don't attempt to transform |
// event locations, else the root location is wrong. |
@@ -33,13 +31,6 @@ WindowTreeHostMus::WindowTreeHostMus(mojo::Shell* shell, |
dispatcher()->set_transform_events(false); |
compositor()->SetHostHasTransparentBackground(true); |
- bitmap_uploader_.reset(new bitmap_uploader::BitmapUploader(window)); |
- bitmap_uploader_->Init(shell); |
- prop_.reset( |
- new ui::ViewProp(GetAcceleratedWidget(), |
- bitmap_uploader::kBitmapUploaderForAcceleratedWidget, |
- bitmap_uploader_.get())); |
- |
input_method_.reset(new InputMethodMUS(this, window)); |
SetSharedInputMethod(input_method_.get()); |
} |