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

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_controller.cc

Issue 1085123002: ozone: drm: Restore cursor in CrtcController::Modeset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup test Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/crtc_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/crtc_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698