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

Side by Side Diff: ui/display/chromeos/x11/native_display_delegate_x11.h

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, 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 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const DisplayMode* mode, 85 const DisplayMode* mode,
86 const gfx::Point& origin, 86 const gfx::Point& origin,
87 const ConfigureCallback& callback) override; 87 const ConfigureCallback& callback) override;
88 void CreateFrameBuffer(const gfx::Size& size) override; 88 void CreateFrameBuffer(const gfx::Size& size) override;
89 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; 89 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override;
90 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; 90 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override;
91 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 91 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
92 const DisplaySnapshot& output) override; 92 const DisplaySnapshot& output) override;
93 bool SetColorCalibrationProfile(const DisplaySnapshot& output, 93 bool SetColorCalibrationProfile(const DisplaySnapshot& output,
94 ColorCalibrationProfile new_profile) override; 94 ColorCalibrationProfile new_profile) override;
95 bool SetGammaRamp(const ui::DisplaySnapshot& output,
96 const std::vector<uint16_t>& r,
97 const std::vector<uint16_t>& g,
98 const std::vector<uint16_t>& b) override;
95 void AddObserver(NativeDisplayObserver* observer) override; 99 void AddObserver(NativeDisplayObserver* observer) override;
96 void RemoveObserver(NativeDisplayObserver* observer) override; 100 void RemoveObserver(NativeDisplayObserver* observer) override;
97 101
98 private: 102 private:
99 class HelperDelegateX11; 103 class HelperDelegateX11;
100 104
101 // Parses all the modes made available by |screen_|. 105 // Parses all the modes made available by |screen_|.
102 void InitModes(); 106 void InitModes();
103 107
104 // Helper method for GetOutputs() that returns an OutputSnapshot struct based 108 // Helper method for GetOutputs() that returns an OutputSnapshot struct based
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 161
158 // A background color used during boot time + multi displays. 162 // A background color used during boot time + multi displays.
159 uint32_t background_color_argb_; 163 uint32_t background_color_argb_;
160 164
161 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); 165 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11);
162 }; 166 };
163 167
164 } // namespace ui 168 } // namespace ui
165 169
166 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 170 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698