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

Side by Side Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.cc

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix spang/oshima nits 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
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/host/drm_native_display_delegate.h" 5 #include "ui/ozone/platform/drm/host/drm_native_display_delegate.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return std::vector<ColorCalibrationProfile>(); 203 return std::vector<ColorCalibrationProfile>();
204 } 204 }
205 205
206 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile( 206 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile(
207 const DisplaySnapshot& output, 207 const DisplaySnapshot& output,
208 ColorCalibrationProfile new_profile) { 208 ColorCalibrationProfile new_profile) {
209 NOTIMPLEMENTED(); 209 NOTIMPLEMENTED();
210 return false; 210 return false;
211 } 211 }
212 212
213 bool DrmNativeDisplayDelegate::SetGammaRamp(const ui::DisplaySnapshot& output,
214 const std::vector<uint16_t>& r,
215 const std::vector<uint16_t>& g,
216 const std::vector<uint16_t>& b) {
217 proxy_->Send(new OzoneGpuMsg_SetGammaRamp(output.display_id(), r, g, b));
218 return true;
219 }
220
213 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { 221 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) {
214 observers_.AddObserver(observer); 222 observers_.AddObserver(observer);
215 } 223 }
216 224
217 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { 225 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) {
218 observers_.RemoveObserver(observer); 226 observers_.RemoveObserver(observer);
219 } 227 }
220 228
221 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { 229 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) {
222 if (event.device_type() != DeviceEvent::DISPLAY) 230 if (event.device_type() != DeviceEvent::DISPLAY)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 configure_callback_map_.erase(it); 342 configure_callback_map_.erase(it);
335 } 343 }
336 } 344 }
337 345
338 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( 346 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback(
339 const GetDisplaysCallback& callback) const { 347 const GetDisplaysCallback& callback) const {
340 callback.Run(displays_.get()); 348 callback.Run(displays_.get());
341 } 349 }
342 350
343 } // namespace ui 351 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698