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

Side by Side Diff: ui/display/types/native_display_delegate.h

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 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/display/types/display_snapshot.cc ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | 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 #ifndef UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Gets the available list of color calibrations. 100 // Gets the available list of color calibrations.
101 virtual std::vector<ui::ColorCalibrationProfile> 101 virtual std::vector<ui::ColorCalibrationProfile>
102 GetAvailableColorCalibrationProfiles( 102 GetAvailableColorCalibrationProfiles(
103 const ui::DisplaySnapshot& output) = 0; 103 const ui::DisplaySnapshot& output) = 0;
104 104
105 // Sets the color calibration of |output| to |new_profile|. 105 // Sets the color calibration of |output| to |new_profile|.
106 virtual bool SetColorCalibrationProfile( 106 virtual bool SetColorCalibrationProfile(
107 const ui::DisplaySnapshot& output, 107 const ui::DisplaySnapshot& output,
108 ui::ColorCalibrationProfile new_profile) = 0; 108 ui::ColorCalibrationProfile new_profile) = 0;
109 109
110 // Set the gamma ramp for the display. 110 // Set the gamma tables and corection matrix for the display.
111 virtual bool SetGammaRamp(const ui::DisplaySnapshot& output, 111 virtual bool SetColorCorrection(
112 const std::vector<GammaRampRGBEntry>& lut) = 0; 112 const ui::DisplaySnapshot& output,
113 const std::vector<GammaRampRGBEntry>& degamma_lut,
114 const std::vector<GammaRampRGBEntry>& gamma_lut,
115 const std::vector<float>& correction_matrix) = 0;
113 116
114 virtual void AddObserver(NativeDisplayObserver* observer) = 0; 117 virtual void AddObserver(NativeDisplayObserver* observer) = 0;
115 118
116 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; 119 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0;
117 }; 120 };
118 121
119 } // namespace ui 122 } // namespace ui
120 123
121 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ 124 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/display/types/display_snapshot.cc ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698