OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |