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