| Index: ui/gfx/ozone/dri/hardware_display_controller.cc
|
| diff --git a/ui/gfx/ozone/dri/hardware_display_controller.cc b/ui/gfx/ozone/dri/hardware_display_controller.cc
|
| index e08cecf44c549bfbc23dfe4b6f3ff8a2b0b0d22d..55dd0086369c8b2c723dd4d5145e228b734d86d4 100644
|
| --- a/ui/gfx/ozone/dri/hardware_display_controller.cc
|
| +++ b/ui/gfx/ozone/dri/hardware_display_controller.cc
|
| @@ -133,12 +133,14 @@ void HardwareDisplayController::OnPageFlipEvent(unsigned int frame,
|
| surface_->SwapBuffers();
|
| }
|
|
|
| -bool HardwareDisplayController::SetCursor(const DriSurface& surface) {
|
| +bool HardwareDisplayController::SetCursor(DriSurface* surface) {
|
| CHECK(state_ != UNASSOCIATED);
|
| - return drm_->SetCursor(crtc_id_,
|
| - surface.GetHandle(),
|
| - surface.size().width(),
|
| - surface.size().height());
|
| + bool ret = drm_->SetCursor(crtc_id_,
|
| + surface->GetHandle(),
|
| + surface->size().width(),
|
| + surface->size().height());
|
| + surface->SwapBuffers();
|
| + return ret;
|
| }
|
|
|
| bool HardwareDisplayController::UnsetCursor() {
|
|
|