OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" | 5 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" |
6 | 6 |
7 #include <drm.h> | 7 #include <drm.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <xf86drm.h> | 9 #include <xf86drm.h> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 for (size_t i = 0; i < crtc_controllers_.size(); ++i) | 130 for (size_t i = 0; i < crtc_controllers_.size(); ++i) |
131 status &= crtc_controllers_[i]->SetCursor(buffer); | 131 status &= crtc_controllers_[i]->SetCursor(buffer); |
132 | 132 |
133 return status; | 133 return status; |
134 } | 134 } |
135 | 135 |
136 bool HardwareDisplayController::UnsetCursor() { | 136 bool HardwareDisplayController::UnsetCursor() { |
137 bool status = true; | 137 bool status = true; |
138 for (size_t i = 0; i < crtc_controllers_.size(); ++i) | 138 for (size_t i = 0; i < crtc_controllers_.size(); ++i) |
139 status &= crtc_controllers_[i]->UnsetCursor(); | 139 status &= crtc_controllers_[i]->SetCursor(nullptr); |
140 | 140 |
141 return status; | 141 return status; |
142 } | 142 } |
143 | 143 |
144 bool HardwareDisplayController::MoveCursor(const gfx::Point& location) { | 144 bool HardwareDisplayController::MoveCursor(const gfx::Point& location) { |
145 if (is_disabled_) | 145 if (is_disabled_) |
146 return true; | 146 return true; |
147 | 147 |
148 bool status = true; | 148 bool status = true; |
149 for (size_t i = 0; i < crtc_controllers_.size(); ++i) | 149 for (size_t i = 0; i < crtc_controllers_.size(); ++i) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 | 323 |
324 void HardwareDisplayController::ClearPendingRequests() { | 324 void HardwareDisplayController::ClearPendingRequests() { |
325 while (!requests_.empty()) { | 325 while (!requests_.empty()) { |
326 PageFlipRequest request = requests_.front(); | 326 PageFlipRequest request = requests_.front(); |
327 requests_.pop_front(); | 327 requests_.pop_front(); |
328 request.callback.Run(); | 328 request.callback.Run(); |
329 } | 329 } |
330 } | 330 } |
331 | 331 |
332 } // namespace ui | 332 } // namespace ui |
OLD | NEW |