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

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: Minor fixes Created 5 years, 7 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(
214 const ui::DisplaySnapshot& output,
215 const std::vector<GammaRampRGBEntry>& lut) {
216 proxy_->Send(new OzoneGpuMsg_SetGammaRamp(output.display_id(), lut));
217 return true;
218 }
219
213 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { 220 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) {
214 observers_.AddObserver(observer); 221 observers_.AddObserver(observer);
215 } 222 }
216 223
217 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { 224 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) {
218 observers_.RemoveObserver(observer); 225 observers_.RemoveObserver(observer);
219 } 226 }
220 227
221 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { 228 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) {
222 if (event.device_type() != DeviceEvent::DISPLAY) 229 if (event.device_type() != DeviceEvent::DISPLAY)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 configure_callback_map_.erase(it); 341 configure_callback_map_.erase(it);
335 } 342 }
336 } 343 }
337 344
338 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( 345 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback(
339 const GetDisplaysCallback& callback) const { 346 const GetDisplaysCallback& callback) const {
340 callback.Run(displays_.get()); 347 callback.Run(displays_.get());
341 } 348 }
342 349
343 } // namespace ui 350 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698