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(); |