Index: ui/ozone/platform/drm/gpu/drm_thread.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc |
index 1e73c56bc6a468aebf942433bf5638178681eba1..6b41bc2e244f8ca9528d3dde6a6993ee3e9493e5 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc |
@@ -10,6 +10,7 @@ |
#include "base/macros.h" |
#include "base/memory/ptr_util.h" |
#include "base/threading/thread_task_runner_handle.h" |
+#include "services/shell/public/cpp/connection.h" |
#include "ui/ozone/platform/drm/gpu/drm_buffer.h" |
#include "ui/ozone/platform/drm/gpu/drm_device_generator.h" |
#include "ui/ozone/platform/drm/gpu/drm_device_manager.h" |
@@ -168,10 +169,10 @@ void DrmThread::SetWindowBounds(gfx::AcceleratedWidget widget, |
screen_manager_->GetWindow(widget)->SetBounds(bounds); |
} |
-void DrmThread::SetCursor(gfx::AcceleratedWidget widget, |
+void DrmThread::SetCursor(const gfx::AcceleratedWidget& widget, |
const std::vector<SkBitmap>& bitmaps, |
const gfx::Point& location, |
- int frame_delay_ms) { |
+ uint32_t frame_delay_ms) { |
screen_manager_->GetWindow(widget) |
->SetCursor(bitmaps, location, frame_delay_ms); |
} |
@@ -254,4 +255,10 @@ void DrmThread::SetColorCorrection( |
correction_matrix); |
} |
+// DrmThread requires a BindingSet instead of a simple Binding because it will |
+// be used from multiple threads in multiple processes. |
+void DrmThread::AddBinding(ozone::mojom::DeviceCursorRequest request) { |
+ bindings_.AddBinding(this, std::move(request)); |
+} |
+ |
} // namespace ui |