| 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_TEST_MOCK_DRM_DEVICE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_TEST_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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 uint32_t* stride, | 103 uint32_t* stride, |
| 104 void** pixels) override; | 104 void** pixels) override; |
| 105 void DestroyDumbBuffer(const SkImageInfo& info, | 105 void DestroyDumbBuffer(const SkImageInfo& info, |
| 106 uint32_t handle, | 106 uint32_t handle, |
| 107 uint32_t stride, | 107 uint32_t stride, |
| 108 void* pixels) override; | 108 void* pixels) override; |
| 109 | 109 |
| 110 bool CloseBufferHandle(uint32_t handle) override; | 110 bool CloseBufferHandle(uint32_t handle) override; |
| 111 bool CommitProperties(drmModePropertySet* properties, | 111 bool CommitProperties(drmModePropertySet* properties, |
| 112 uint32_t flags, | 112 uint32_t flags, |
| 113 bool is_sync, | |
| 114 const PageFlipCallback& callback) override; | 113 const PageFlipCallback& callback) override; |
| 115 | 114 |
| 116 private: | 115 private: |
| 117 ~MockDrmDevice() override; | 116 ~MockDrmDevice() override; |
| 118 | 117 |
| 119 int get_crtc_call_count_; | 118 int get_crtc_call_count_; |
| 120 int set_crtc_call_count_; | 119 int set_crtc_call_count_; |
| 121 int restore_crtc_call_count_; | 120 int restore_crtc_call_count_; |
| 122 int add_framebuffer_call_count_; | 121 int add_framebuffer_call_count_; |
| 123 int remove_framebuffer_call_count_; | 122 int remove_framebuffer_call_count_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 140 std::map<uint32_t, uint32_t> crtc_cursor_map_; | 139 std::map<uint32_t, uint32_t> crtc_cursor_map_; |
| 141 | 140 |
| 142 std::queue<PageFlipCallback> callbacks_; | 141 std::queue<PageFlipCallback> callbacks_; |
| 143 | 142 |
| 144 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 143 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
| 145 }; | 144 }; |
| 146 | 145 |
| 147 } // namespace ui | 146 } // namespace ui |
| 148 | 147 |
| 149 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ | 148 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ |
| OLD | NEW |