| Index: ui/ozone/platform/dri/hardware_display_controller.cc
|
| diff --git a/ui/ozone/platform/dri/hardware_display_controller.cc b/ui/ozone/platform/dri/hardware_display_controller.cc
|
| index f863e3ff2ad274e69cd3633a1a193004061b2c57..882efc1f58754583c65132af5d0f9379c3df537c 100644
|
| --- a/ui/ozone/platform/dri/hardware_display_controller.cc
|
| +++ b/ui/ozone/platform/dri/hardware_display_controller.cc
|
| @@ -202,24 +202,24 @@ void HardwareDisplayController::OnPageFlipEvent(unsigned int frame,
|
| surface_->SwapBuffers();
|
| }
|
|
|
| -bool HardwareDisplayController::SetCursor(ScanoutSurface* surface) {
|
| +bool HardwareDisplayController::SetCursor(scoped_refptr<ScanoutBuffer> buffer) {
|
| bool ret = drm_->SetCursor(crtc_id_,
|
| - surface->GetHandle(),
|
| - surface->Size().width(),
|
| - surface->Size().height());
|
| - surface->SwapBuffers();
|
| + buffer->GetHandle(),
|
| + buffer->GetSize());
|
| + cursor_buffer_ = buffer;
|
| return ret;
|
| }
|
|
|
| bool HardwareDisplayController::UnsetCursor() {
|
| - return drm_->SetCursor(crtc_id_, 0, 0, 0);
|
| + cursor_buffer_ = NULL;
|
| + return drm_->SetCursor(crtc_id_, 0, gfx::Size());
|
| }
|
|
|
| bool HardwareDisplayController::MoveCursor(const gfx::Point& location) {
|
| if (is_disabled_)
|
| return true;
|
|
|
| - return drm_->MoveCursor(crtc_id_, location.x(), location.y());
|
| + return drm_->MoveCursor(crtc_id_, location);
|
| }
|
|
|
| } // namespace ui
|
|
|