| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) override; | 100 bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) override; |
| 101 bool CreateDumbBuffer(const SkImageInfo& info, | 101 bool CreateDumbBuffer(const SkImageInfo& info, |
| 102 uint32_t* handle, | 102 uint32_t* handle, |
| 103 uint32_t* stride) override; | 103 uint32_t* stride) override; |
| 104 bool DestroyDumbBuffer(uint32_t handle) override; | 104 bool DestroyDumbBuffer(uint32_t handle) override; |
| 105 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; | 105 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; |
| 106 bool UnmapDumbBuffer(void* pixels, size_t size) override; | 106 bool UnmapDumbBuffer(void* pixels, size_t size) override; |
| 107 bool CloseBufferHandle(uint32_t handle) override; | 107 bool CloseBufferHandle(uint32_t handle) override; |
| 108 bool CommitProperties(drmModePropertySet* properties, | 108 bool CommitProperties(drmModePropertySet* properties, |
| 109 uint32_t flags, | 109 uint32_t flags, |
| 110 bool is_sync, |
| 110 const PageFlipCallback& callback) override; | 111 const PageFlipCallback& callback) override; |
| 112 bool SetCapability(uint64_t capability, uint64_t value) override; |
| 111 | 113 |
| 112 private: | 114 private: |
| 113 ~MockDrmDevice() override; | 115 ~MockDrmDevice() override; |
| 114 | 116 |
| 115 int get_crtc_call_count_; | 117 int get_crtc_call_count_; |
| 116 int set_crtc_call_count_; | 118 int set_crtc_call_count_; |
| 117 int restore_crtc_call_count_; | 119 int restore_crtc_call_count_; |
| 118 int add_framebuffer_call_count_; | 120 int add_framebuffer_call_count_; |
| 119 int remove_framebuffer_call_count_; | 121 int remove_framebuffer_call_count_; |
| 120 int page_flip_call_count_; | 122 int page_flip_call_count_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 136 std::map<uint32_t, uint32_t> crtc_cursor_map_; | 138 std::map<uint32_t, uint32_t> crtc_cursor_map_; |
| 137 | 139 |
| 138 std::queue<PageFlipCallback> callbacks_; | 140 std::queue<PageFlipCallback> callbacks_; |
| 139 | 141 |
| 140 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 142 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 } // namespace ui | 145 } // namespace ui |
| 144 | 146 |
| 145 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ | 147 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ |
| OLD | NEW |