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

Unified Diff: ui/display/chromeos/display_configurator.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: Address spang@ & dcheng@ feedback Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/display/chromeos/display_configurator.h
diff --git a/ui/display/chromeos/display_configurator.h b/ui/display/chromeos/display_configurator.h
index 2301479560863accaf2694c913ae626fbde459b0..b990119d7c2b84f11ad16cbfe61226c8dfae254d 100644
--- a/ui/display/chromeos/display_configurator.h
+++ b/ui/display/chromeos/display_configurator.h
@@ -269,14 +269,17 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
bool SetColorCalibrationProfile(int64_t display_id,
ui::ColorCalibrationProfile new_profile);
- // Sets the gamma ramp for |display_id| to the values in |lut|.
- bool SetGammaRamp(int64_t display_id,
- const std::vector<GammaRampRGBEntry>& lut);
-
// Enables/disables virtual display.
int64_t AddVirtualDisplay(gfx::Size display_size);
bool RemoveVirtualDisplay(int64_t display_id);
+ // Sets the gamma, degamma and correction matrix for |display_id| to the
+ // values in |degamma_lut|, |gamma_lut| and |correction_matrix|.
+ bool SetColorCorrection(int64_t display_id,
+ const std::vector<GammaRampRGBEntry>& degamma_lut,
+ const std::vector<GammaRampRGBEntry>& gamma_lut,
+ const std::vector<float>& correction_matrix);
+
private:
class DisplayLayoutManagerImpl;

Powered by Google App Engine
This is Rietveld 408576698