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

Unified Diff: ui/ozone/platform/dri/ozone_platform_dri.cc

Issue 527293002: ozone: Remove CursorFactoryOzone::SetCursor, GetCursorWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/ozone_platform_dri.cc
diff --git a/ui/ozone/platform/dri/ozone_platform_dri.cc b/ui/ozone/platform/dri/ozone_platform_dri.cc
index c192527142fadd9099471afc9839e5df8d1c522a..1a2fe380e9c7b8c0317e0db7e7884e37373e90fb 100644
--- a/ui/ozone/platform/dri/ozone_platform_dri.cc
+++ b/ui/ozone/platform/dri/ozone_platform_dri.cc
@@ -5,11 +5,12 @@
#include "ui/ozone/platform/dri/ozone_platform_dri.h"
#include "base/at_exit.h"
+#include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h"
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
-#include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h"
#include "ui/ozone/platform/dri/dri_buffer.h"
+#include "ui/ozone/platform/dri/dri_cursor.h"
#include "ui/ozone/platform/dri/dri_surface_factory.h"
#include "ui/ozone/platform/dri/dri_window.h"
#include "ui/ozone/platform/dri/dri_window_delegate_impl.h"
@@ -70,7 +71,8 @@ class OzonePlatformDri : public OzonePlatform {
scoped_ptr<DriWindowDelegate>(new DriWindowDelegateImpl(
window_manager_.NextAcceleratedWidget(), screen_manager_.get())),
event_factory_ozone_.get(),
- &window_manager_));
+ &window_manager_,
+ cursor_.get()));
platform_window->Initialize();
return platform_window.PassAs<PlatformWindow>();
}
@@ -89,10 +91,10 @@ class OzonePlatformDri : public OzonePlatform {
virtual void InitializeUI() OVERRIDE {
surface_factory_ozone_.reset(new DriSurfaceFactory(
dri_.get(), screen_manager_.get(), &window_manager_));
- cursor_factory_ozone_.reset(
- new CursorFactoryEvdevDri(surface_factory_ozone_.get()));
- event_factory_ozone_.reset(new EventFactoryEvdev(
- cursor_factory_ozone_.get(), device_manager_.get()));
+ cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone);
+ cursor_.reset(new DriCursor(surface_factory_ozone_.get()));
+ event_factory_ozone_.reset(
+ new EventFactoryEvdev(cursor_.get(), device_manager_.get()));
if (surface_factory_ozone_->InitializeHardware() !=
DriSurfaceFactory::INITIALIZED)
LOG(FATAL) << "failed to initialize display hardware";
@@ -109,7 +111,8 @@ class OzonePlatformDri : public OzonePlatform {
scoped_ptr<DeviceManager> device_manager_;
scoped_ptr<DriSurfaceFactory> surface_factory_ozone_;
- scoped_ptr<CursorFactoryEvdevDri> cursor_factory_ozone_;
+ scoped_ptr<BitmapCursorFactoryOzone> cursor_factory_ozone_;
+ scoped_ptr<DriCursor> cursor_;
scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
DriWindowManager window_manager_;
« no previous file with comments | « ui/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698