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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/drm_thread.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
6 6
7 #include <gbm.h> 7 #include <gbm.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const base::FileDescriptor& fd) { 245 const base::FileDescriptor& fd) {
246 device_manager_->AddDrmDevice(path, fd); 246 device_manager_->AddDrmDevice(path, fd);
247 } 247 }
248 248
249 void DrmThread::RemoveGraphicsDevice(const base::FilePath& path) { 249 void DrmThread::RemoveGraphicsDevice(const base::FilePath& path) {
250 device_manager_->RemoveDrmDevice(path); 250 device_manager_->RemoveDrmDevice(path);
251 } 251 }
252 252
253 void DrmThread::GetHDCPState( 253 void DrmThread::GetHDCPState(
254 int64_t display_id, 254 int64_t display_id,
255 const base::Callback<void(int64_t, bool, HDCPState)>& callback) { 255 const base::Callback<void(int64_t, bool, display::HDCPState)>& callback) {
256 HDCPState state = HDCP_STATE_UNDESIRED; 256 display::HDCPState state = display::HDCP_STATE_UNDESIRED;
257 bool success = display_manager_->GetHDCPState(display_id, &state); 257 bool success = display_manager_->GetHDCPState(display_id, &state);
258 callback.Run(display_id, success, state); 258 callback.Run(display_id, success, state);
259 } 259 }
260 260
261 void DrmThread::SetHDCPState( 261 void DrmThread::SetHDCPState(
262 int64_t display_id, 262 int64_t display_id,
263 HDCPState state, 263 display::HDCPState state,
264 const base::Callback<void(int64_t, bool)>& callback) { 264 const base::Callback<void(int64_t, bool)>& callback) {
265 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); 265 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state));
266 } 266 }
267 267
268 void DrmThread::SetColorCorrection( 268 void DrmThread::SetColorCorrection(
269 int64_t display_id, 269 int64_t display_id,
270 const std::vector<GammaRampRGBEntry>& degamma_lut, 270 const std::vector<display::GammaRampRGBEntry>& degamma_lut,
271 const std::vector<GammaRampRGBEntry>& gamma_lut, 271 const std::vector<display::GammaRampRGBEntry>& gamma_lut,
272 const std::vector<float>& correction_matrix) { 272 const std::vector<float>& correction_matrix) {
273 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, 273 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut,
274 correction_matrix); 274 correction_matrix);
275 } 275 }
276 276
277 // DrmThread requires a BindingSet instead of a simple Binding because it will 277 // DrmThread requires a BindingSet instead of a simple Binding because it will
278 // be used from multiple threads in multiple processes. 278 // be used from multiple threads in multiple processes.
279 void DrmThread::AddBinding(ozone::mojom::DeviceCursorRequest request) { 279 void DrmThread::AddBinding(ozone::mojom::DeviceCursorRequest request) {
280 bindings_.AddBinding(this, std::move(request)); 280 bindings_.AddBinding(this, std::move(request));
281 } 281 }
282 282
283 } // namespace ui 283 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698