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

Side by Side Diff: ui/display/chromeos/display_configurator.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 ozone build 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;
33 class DisplayLayoutManager; 35 class DisplayLayoutManager;
34 class DisplayMode; 36 class DisplayMode;
35 class DisplaySnapshot; 37 class DisplaySnapshot;
36 class NativeDisplayDelegate; 38 class NativeDisplayDelegate;
37 class UpdateDisplayConfigurationTask; 39 class UpdateDisplayConfigurationTask;
38 40
39 // This class interacts directly with the system display configurator. 41 // This class interacts directly with the system display configurator.
40 class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { 42 class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
41 public: 43 public:
42 typedef uint64_t ContentProtectionClientId; 44 typedef uint64_t ContentProtectionClientId;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 255
254 // Checks the available color profiles for |display_id| and fills the result 256 // Checks the available color profiles for |display_id| and fills the result
255 // into |profiles|. 257 // into |profiles|.
256 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 258 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
257 int64_t display_id); 259 int64_t display_id);
258 260
259 // Updates the color calibration to |new_profile|. 261 // Updates the color calibration to |new_profile|.
260 bool SetColorCalibrationProfile(int64_t display_id, 262 bool SetColorCalibrationProfile(int64_t display_id,
261 ui::ColorCalibrationProfile new_profile); 263 ui::ColorCalibrationProfile new_profile);
262 264
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
263 private: 269 private:
264 class DisplayLayoutManagerImpl; 270 class DisplayLayoutManagerImpl;
265 271
266 // Mapping a client to its protection request. 272 // Mapping a client to its protection request.
267 typedef std::map<ContentProtectionClientId, ContentProtections> 273 typedef std::map<ContentProtectionClientId, ContentProtections>
268 ProtectionRequests; 274 ProtectionRequests;
269 275
270 // Performs platform specific delegate initialization. 276 // Performs platform specific delegate initialization.
271 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); 277 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate();
272 278
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 413
408 // This must be the last variable. 414 // This must be the last variable.
409 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 415 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
410 416
411 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 417 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
412 }; 418 };
413 419
414 } // namespace ui 420 } // namespace ui
415 421
416 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 422 #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