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

Unified Diff: ui/gfx/ozone/dri/hardware_display_controller.cc

Issue 208553004: ozone: dri: Do initial cursor set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move cursor swap buffers Created 6 years, 9 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/gfx/ozone/dri/hardware_display_controller.h ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « ui/gfx/ozone/dri/hardware_display_controller.h ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698