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

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: fix build 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.cc ('k') | ui/ozone/platform/drm/host/drm_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f8a6bfd5aecc52c2119c49b4d41ce0a17579e1b7 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;
+ 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();
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.cc ('k') | ui/ozone/platform/drm/host/drm_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698