diff options
Diffstat (limited to 'ui/views/mus/window_tree_host_mus.cc')
-rw-r--r-- | ui/views/mus/window_tree_host_mus.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc index 7e01767..5f0b825 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()); } |