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

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: Add ash::DisplayColorManager Created 5 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
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 // Checks the available color profiles for |display_id| and fills the result 261 // Checks the available color profiles for |display_id| and fills the result
262 // into |profiles|. 262 // into |profiles|.
263 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 263 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
264 int64_t display_id); 264 int64_t display_id);
265 265
266 // Updates the color calibration to |new_profile|. 266 // Updates the color calibration to |new_profile|.
267 bool SetColorCalibrationProfile(int64_t display_id, 267 bool SetColorCalibrationProfile(int64_t display_id,
268 ui::ColorCalibrationProfile new_profile); 268 ui::ColorCalibrationProfile new_profile);
269 269
270 // Sets the gamma ramp for |display_id| to the values in |r|, |g| and |b|.
271 bool SetGammaRamp(int64_t display_id,
272 const std::vector<uint16_t>& r,
273 const std::vector<uint16_t>& g,
274 const std::vector<uint16_t>& b);
275
270 private: 276 private:
271 class DisplayLayoutManagerImpl; 277 class DisplayLayoutManagerImpl;
272 278
273 // Mapping a display_id to a protection request bitmask. 279 // Mapping a display_id to a protection request bitmask.
274 typedef std::map<int64_t, uint32_t> ContentProtections; 280 typedef std::map<int64_t, uint32_t> ContentProtections;
275 // Mapping a client to its protection request. 281 // Mapping a client to its protection request.
276 typedef std::map<ContentProtectionClientId, ContentProtections> 282 typedef std::map<ContentProtectionClientId, ContentProtections>
277 ProtectionRequests; 283 ProtectionRequests;
278 284
279 // Performs platform specific delegate initialization. 285 // Performs platform specific delegate initialization.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 408
403 // This must be the last variable. 409 // This must be the last variable.
404 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 410 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
405 411
406 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 412 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
407 }; 413 };
408 414
409 } // namespace ui 415 } // namespace ui
410 416
411 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 417 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698