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

Side by Side Diff: ui/display/chromeos/display_configurator.h

Issue 1118373006: Revert of 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: 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | ui/display/chromeos/display_configurator.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_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 12 matching lines...) Expand all
23 #include "ui/display/types/display_constants.h" 23 #include "ui/display/types/display_constants.h"
24 #include "ui/display/types/native_display_observer.h" 24 #include "ui/display/types/native_display_observer.h"
25 #include "ui/gfx/geometry/size.h" 25 #include "ui/gfx/geometry/size.h"
26 26
27 namespace gfx { 27 namespace gfx {
28 class Point; 28 class Point;
29 class Size; 29 class Size;
30 } 30 }
31 31
32 namespace ui { 32 namespace ui {
33 struct DisplayConfigureRequest;
34 struct GammaRampRGBEntry;
35 class DisplayLayoutManager; 33 class DisplayLayoutManager;
36 class DisplayMode; 34 class DisplayMode;
37 class DisplaySnapshot; 35 class DisplaySnapshot;
38 class NativeDisplayDelegate; 36 class NativeDisplayDelegate;
39 class UpdateDisplayConfigurationTask; 37 class UpdateDisplayConfigurationTask;
40 38
41 // This class interacts directly with the system display configurator. 39 // This class interacts directly with the system display configurator.
42 class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { 40 class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
43 public: 41 public:
44 typedef uint64_t ContentProtectionClientId; 42 typedef uint64_t ContentProtectionClientId;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 253
256 // Checks the available color profiles for |display_id| and fills the result 254 // Checks the available color profiles for |display_id| and fills the result
257 // into |profiles|. 255 // into |profiles|.
258 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 256 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
259 int64_t display_id); 257 int64_t display_id);
260 258
261 // Updates the color calibration to |new_profile|. 259 // Updates the color calibration to |new_profile|.
262 bool SetColorCalibrationProfile(int64_t display_id, 260 bool SetColorCalibrationProfile(int64_t display_id,
263 ui::ColorCalibrationProfile new_profile); 261 ui::ColorCalibrationProfile new_profile);
264 262
265 // Sets the gamma ramp for |display_id| to the values in |lut|.
266 bool SetGammaRamp(int64_t display_id,
267 const std::vector<GammaRampRGBEntry>& lut);
268
269 private: 263 private:
270 class DisplayLayoutManagerImpl; 264 class DisplayLayoutManagerImpl;
271 265
272 // Mapping a client to its protection request. 266 // Mapping a client to its protection request.
273 typedef std::map<ContentProtectionClientId, ContentProtections> 267 typedef std::map<ContentProtectionClientId, ContentProtections>
274 ProtectionRequests; 268 ProtectionRequests;
275 269
276 // Performs platform specific delegate initialization. 270 // Performs platform specific delegate initialization.
277 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); 271 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate();
278 272
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 407
414 // This must be the last variable. 408 // This must be the last variable.
415 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 409 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
416 410
417 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 411 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
418 }; 412 };
419 413
420 } // namespace ui 414 } // namespace ui
421 415
422 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 416 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698