Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: ui/views/mus/window_tree_host_mus.cc

Issue 1634103002: views/mus: Make PlatformWindowMus be responsible for setting-up the BitmapUploader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/window_tree_host_mus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « ui/views/mus/window_tree_host_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698