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

Side by Side Diff: ui/display/chromeos/test/action_logger_util.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: 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 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_
6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ 6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() 59 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer()
60 // call. 60 // call.
61 std::string GetFramebufferAction(const gfx::Size& size, 61 std::string GetFramebufferAction(const gfx::Size& size,
62 const DisplaySnapshot* out1, 62 const DisplaySnapshot* out1,
63 const DisplaySnapshot* out2); 63 const DisplaySnapshot* out2);
64 64
65 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. 65 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call.
66 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, 66 std::string GetSetHDCPStateAction(const DisplaySnapshot& output,
67 HDCPState state); 67 HDCPState state);
68 68
69 // Returns a string describing a TestNativeDisplayDelegate::SetGammaRamp() call; 69 // Returns a string describing a TestNativeDisplayDelegate::SetColorCorrection()
70 std::string SetGammaRampAction(const ui::DisplaySnapshot& output, 70 // call;
71 const std::vector<GammaRampRGBEntry>& lut); 71 std::string SetColorCorrectionAction(
72 const ui::DisplaySnapshot& output,
73 const std::vector<GammaRampRGBEntry>& degamma_lut,
74 const std::vector<GammaRampRGBEntry>& gamma_lut,
75 const std::vector<float>& correction_matrix);
72 // Joins a sequence of strings describing actions (e.g. kScreenDim) such 76 // Joins a sequence of strings describing actions (e.g. kScreenDim) such
73 // that they can be compared against a string returned by 77 // that they can be compared against a string returned by
74 // ActionLogger::GetActionsAndClear(). The list of actions must be 78 // ActionLogger::GetActionsAndClear(). The list of actions must be
75 // terminated by a NULL pointer. 79 // terminated by a NULL pointer.
76 std::string JoinActions(const char* action, ...); 80 std::string JoinActions(const char* action, ...);
77 81
78 } // namespace test 82 } // namespace test
79 } // namespace ui 83 } // namespace ui
80 84
81 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ 85 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/display_snapshot_virtual.cc ('k') | ui/display/chromeos/test/action_logger_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698