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

Unified Diff: ui/ozone/platform/dri/dri_wrapper.cc

Issue 407603002: [Ozone-DRI] Migrate cursor to using ScanoutBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: ui/ozone/platform/dri/dri_wrapper.cc
diff --git a/ui/ozone/platform/dri/dri_wrapper.cc b/ui/ozone/platform/dri/dri_wrapper.cc
index 035243c95ef62961eb8ecc24043013393c77a3b0..9101c3459489d21408b060a03a831bd4a4faca94 100644
--- a/ui/ozone/platform/dri/dri_wrapper.cc
+++ b/ui/ozone/platform/dri/dri_wrapper.cc
@@ -198,15 +198,14 @@ ScopedDrmPropertyBlobPtr DriWrapper::GetPropertyBlob(
bool DriWrapper::SetCursor(uint32_t crtc_id,
uint32_t handle,
- uint32_t width,
- uint32_t height) {
+ const gfx::Size& size) {
CHECK(fd_ >= 0);
- return !drmModeSetCursor(fd_, crtc_id, handle, width, height);
+ return !drmModeSetCursor(fd_, crtc_id, handle, size.width(), size.height());
}
-bool DriWrapper::MoveCursor(uint32_t crtc_id, int x, int y) {
+bool DriWrapper::MoveCursor(uint32_t crtc_id, const gfx::Point& point) {
CHECK(fd_ >= 0);
- return !drmModeMoveCursor(fd_, crtc_id, x, y);
+ return !drmModeMoveCursor(fd_, crtc_id, point.x(), point.y());
}
void DriWrapper::HandleEvent(drmEventContext& event) {

Powered by Google App Engine
This is Rietveld 408576698