| 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 092f8ce10f39d723d853397ea6a0f5aa6972d244..87bf8f8419c7c90ce8fb42defbfc5be5d03b35a3 100644
|
| --- a/ui/ozone/platform/drm/host/drm_cursor.h
|
| +++ b/ui/ozone/platform/drm/host/drm_cursor.h
|
| @@ -34,7 +34,10 @@ class DrmCursorProxy {
|
| virtual void Move(gfx::AcceleratedWidget window, const gfx::Point& point) = 0;
|
|
|
| // Initialize EvdevThread-specific state.
|
| - virtual void InitializeOnEvdev() = 0;
|
| + virtual void InitializeOnEvdevIfNecessary() = 0;
|
| +
|
| + // Send any queued messages to |delegate|.
|
| + virtual void SendToDelegate(DrmCursorProxy* delegate) = 0;
|
| };
|
|
|
| // DrmCursor manages all cursor state and semantics.
|
| @@ -43,9 +46,11 @@ class DrmCursor : public CursorDelegateEvdev {
|
| explicit DrmCursor(DrmWindowHostManager* window_manager);
|
| ~DrmCursor() override;
|
|
|
| - // Sets or resets the DrmProxy |proxy|. If |proxy| is set, the DrmCursor uses
|
| - // it to communicate to the GPU process or thread.
|
| - void SetDrmCursorProxy(DrmCursorProxy* proxy);
|
| + // Sets or the DrmProxy |proxy|. If |proxy| is set, the DrmCursor uses
|
| + // it to communicate to the GPU process or thread. Returns the previous
|
| + // value.
|
| + std::unique_ptr<DrmCursorProxy> SetDrmCursorProxy(
|
| + std::unique_ptr<DrmCursorProxy> proxy);
|
| void ResetDrmCursorProxy();
|
|
|
| // Change the cursor over the specifed window.
|
|
|