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_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool DestroyDumbBuffer(uint32_t handle) override; | 105 bool DestroyDumbBuffer(uint32_t handle) override; |
106 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; | 106 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; |
107 bool UnmapDumbBuffer(void* pixels, size_t size) override; | 107 bool UnmapDumbBuffer(void* pixels, size_t size) override; |
108 bool CloseBufferHandle(uint32_t handle) override; | 108 bool CloseBufferHandle(uint32_t handle) override; |
109 bool CommitProperties(drmModeAtomicReq* properties, | 109 bool CommitProperties(drmModeAtomicReq* properties, |
110 uint32_t flags, | 110 uint32_t flags, |
111 uint32_t crtc_count, | 111 uint32_t crtc_count, |
112 const PageFlipCallback& callback) override; | 112 const PageFlipCallback& callback) override; |
113 bool SetGammaRamp(uint32_t crtc_id, | 113 bool SetGammaRamp(uint32_t crtc_id, |
114 const std::vector<GammaRampRGBEntry>& lut) override; | 114 const std::vector<GammaRampRGBEntry>& lut) override; |
| 115 bool SetColorCorrection(uint32_t crtc_id, |
| 116 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 117 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 118 const float correction_matrix[9]) override; |
115 bool SetCapability(uint64_t capability, uint64_t value) override; | 119 bool SetCapability(uint64_t capability, uint64_t value) override; |
116 | 120 |
117 private: | 121 private: |
118 ~MockDrmDevice() override; | 122 ~MockDrmDevice() override; |
119 | 123 |
120 int get_crtc_call_count_; | 124 int get_crtc_call_count_; |
121 int set_crtc_call_count_; | 125 int set_crtc_call_count_; |
122 int restore_crtc_call_count_; | 126 int restore_crtc_call_count_; |
123 int add_framebuffer_call_count_; | 127 int add_framebuffer_call_count_; |
124 int remove_framebuffer_call_count_; | 128 int remove_framebuffer_call_count_; |
(...skipping 16 matching lines...) Expand all Loading... |
141 std::map<uint32_t, uint32_t> crtc_cursor_map_; | 145 std::map<uint32_t, uint32_t> crtc_cursor_map_; |
142 | 146 |
143 std::queue<PageFlipCallback> callbacks_; | 147 std::queue<PageFlipCallback> callbacks_; |
144 | 148 |
145 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 149 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
146 }; | 150 }; |
147 | 151 |
148 } // namespace ui | 152 } // namespace ui |
149 | 153 |
150 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ | 154 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ |
OLD | NEW |