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

Side by Side Diff: ui/display/chromeos/test/test_native_display_delegate.cc

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: Rebase after quirks changes Created 4 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 #include "ui/display/chromeos/test/test_native_display_delegate.h" 5 #include "ui/display/chromeos/test/test_native_display_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "ui/display/chromeos/test/action_logger.h" 9 #include "ui/display/chromeos/test/action_logger.h"
10 #include "ui/display/types/display_mode.h" 10 #include "ui/display/types/display_mode.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const DisplaySnapshot& output) { 127 const DisplaySnapshot& output) {
128 return std::vector<ui::ColorCalibrationProfile>(); 128 return std::vector<ui::ColorCalibrationProfile>();
129 } 129 }
130 130
131 bool TestNativeDisplayDelegate::SetColorCalibrationProfile( 131 bool TestNativeDisplayDelegate::SetColorCalibrationProfile(
132 const DisplaySnapshot& output, 132 const DisplaySnapshot& output,
133 ui::ColorCalibrationProfile new_profile) { 133 ui::ColorCalibrationProfile new_profile) {
134 return false; 134 return false;
135 } 135 }
136 136
137 bool TestNativeDisplayDelegate::SetGammaRamp( 137 bool TestNativeDisplayDelegate::SetColorCorrection(
138 const ui::DisplaySnapshot& output, 138 const ui::DisplaySnapshot& output,
139 const std::vector<GammaRampRGBEntry>& lut) { 139 const std::vector<GammaRampRGBEntry>& degamma_lut,
140 log_->AppendAction(SetGammaRampAction(output, lut)); 140 const std::vector<GammaRampRGBEntry>& gamma_lut,
141 const std::vector<float>& correction_matrix) {
142 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut,
143 correction_matrix));
141 return true; 144 return true;
142 } 145 }
143 146
144 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { 147 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) {
145 } 148 }
146 149
147 void TestNativeDisplayDelegate::RemoveObserver( 150 void TestNativeDisplayDelegate::RemoveObserver(
148 NativeDisplayObserver* observer) { 151 NativeDisplayObserver* observer) {
149 } 152 }
150 153
151 } // namespace test 154 } // namespace test
152 } // namespace ui 155 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/test/test_native_display_delegate.h ('k') | ui/display/chromeos/x11/display_snapshot_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698