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

Unified Diff: ui/ozone/platform/drm/host/drm_cursor.h

Issue 2088533002: Refactor ozone drm cursor code for mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: ui/ozone/platform/drm/host/drm_cursor.h
diff --git a/ui/ozone/platform/drm/host/drm_cursor.h b/ui/ozone/platform/drm/host/drm_cursor.h
index 70b18f37e9eb313651e4202b12f0955e6baf053c..8b51d3dc64a0586dc966898916922383d4fe6e7a 100644
--- a/ui/ozone/platform/drm/host/drm_cursor.h
+++ b/ui/ozone/platform/drm/host/drm_cursor.h
@@ -32,6 +32,9 @@ class DrmCursorProxy {
int frame_delay_ms) = 0;
// Moves the cursor in |window| to |point|
virtual void Move(gfx::AcceleratedWidget window, const gfx::Point& point) = 0;
+
+ // Initialize EvdevThread-specific state.
+ virtual void InitializeOnEvdev() = 0;
};
// DrmCursor manages all cursor state and semantics.
@@ -67,6 +70,7 @@ class DrmCursor : public CursorDelegateEvdev {
bool IsCursorVisible() override;
gfx::PointF GetLocation() override;
gfx::Rect GetCursorConfinedBounds() override;
+ virtual void InitializeOnEvdev() override;
private:
void SetCursorLocationLocked(const gfx::PointF& location);
@@ -86,6 +90,7 @@ class DrmCursor : public CursorDelegateEvdev {
// Enforce our threading constraints.
base::ThreadChecker thread_checker_;
+ base::ThreadChecker evdev_thread_checker_;
// The location of the bitmap (the cursor location is the hotspot location).
gfx::Point GetBitmapLocationLocked();

Powered by Google App Engine
This is Rietveld 408576698