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 7e01767aac928c4a2274e3fcc7a05f8b2668a204..5f0b82564d30f07ff34c0d9618b636c7dd2321b2 100644 |
--- a/ui/views/mus/window_tree_host_mus.cc |
+++ b/ui/views/mus/window_tree_host_mus.cc |
@@ -4,9 +4,11 @@ |
#include "ui/views/mus/window_tree_host_mus.h" |
+#include "components/bitmap_uploader/bitmap_uploader.h" |
#include "mojo/application/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" |
@@ -31,6 +33,13 @@ 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()); |
} |