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

Side by Side Diff: ui/display/chromeos/test/test_native_display_delegate.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: Refactor for glevin@ and load VCGT always Created 5 years, 1 month 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_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void SetHDCPState(const DisplaySnapshot& output, 69 void SetHDCPState(const DisplaySnapshot& output,
70 HDCPState state, 70 HDCPState state,
71 const SetHDCPStateCallback& callback) override; 71 const SetHDCPStateCallback& callback) override;
72 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 72 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
73 const DisplaySnapshot& output) override; 73 const DisplaySnapshot& output) override;
74 bool SetColorCalibrationProfile( 74 bool SetColorCalibrationProfile(
75 const DisplaySnapshot& output, 75 const DisplaySnapshot& output,
76 ui::ColorCalibrationProfile new_profile) override; 76 ui::ColorCalibrationProfile new_profile) override;
77 bool SetGammaRamp(const ui::DisplaySnapshot& output, 77 bool SetGammaRamp(const ui::DisplaySnapshot& output,
78 const std::vector<GammaRampRGBEntry>& lut) override; 78 const std::vector<GammaRampRGBEntry>& lut) override;
79 bool SetColorCorrection(const ui::DisplaySnapshot& output,
80 const std::vector<GammaRampRGBEntry>& degamma_lut,
81 const std::vector<GammaRampRGBEntry>& gamma_lut,
82 const float correction_matrix[9]) override;
79 void AddObserver(NativeDisplayObserver* observer) override; 83 void AddObserver(NativeDisplayObserver* observer) override;
80 void RemoveObserver(NativeDisplayObserver* observer) override; 84 void RemoveObserver(NativeDisplayObserver* observer) override;
81 85
82 private: 86 private:
83 bool Configure(const DisplaySnapshot& output, 87 bool Configure(const DisplaySnapshot& output,
84 const DisplayMode* mode, 88 const DisplayMode* mode,
85 const gfx::Point& origin); 89 const gfx::Point& origin);
86 90
87 // Outputs to be returned by GetDisplays(). 91 // Outputs to be returned by GetDisplays().
88 std::vector<DisplaySnapshot*> outputs_; 92 std::vector<DisplaySnapshot*> outputs_;
(...skipping 17 matching lines...) Expand all
106 110
107 ActionLogger* log_; // Not owned. 111 ActionLogger* log_; // Not owned.
108 112
109 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); 113 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate);
110 }; 114 };
111 115
112 } // namespace test 116 } // namespace test
113 } // namespace ui 117 } // namespace ui
114 118
115 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ 119 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698