| 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 <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const gfx::Size& size) override; | 93 const gfx::Size& size) override; |
| 94 bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) override; | 94 bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) override; |
| 95 bool CreateDumbBuffer(const SkImageInfo& info, | 95 bool CreateDumbBuffer(const SkImageInfo& info, |
| 96 uint32_t* handle, | 96 uint32_t* handle, |
| 97 uint32_t* stride, | 97 uint32_t* stride, |
| 98 void** pixels) override; | 98 void** pixels) override; |
| 99 void DestroyDumbBuffer(const SkImageInfo& info, | 99 void DestroyDumbBuffer(const SkImageInfo& info, |
| 100 uint32_t handle, | 100 uint32_t handle, |
| 101 uint32_t stride, | 101 uint32_t stride, |
| 102 void* pixels) override; | 102 void* pixels) override; |
| 103 bool CommitProperties(drmModePropertySet* properties, |
| 104 uint32_t flags, |
| 105 void* user_ptr) override; |
| 103 | 106 |
| 104 private: | 107 private: |
| 105 ~MockDrmDevice() override; | 108 ~MockDrmDevice() override; |
| 106 | 109 |
| 107 int get_crtc_call_count_; | 110 int get_crtc_call_count_; |
| 108 int set_crtc_call_count_; | 111 int set_crtc_call_count_; |
| 109 int restore_crtc_call_count_; | 112 int restore_crtc_call_count_; |
| 110 int add_framebuffer_call_count_; | 113 int add_framebuffer_call_count_; |
| 111 int remove_framebuffer_call_count_; | 114 int remove_framebuffer_call_count_; |
| 112 int page_flip_call_count_; | 115 int page_flip_call_count_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 125 std::vector<skia::RefPtr<SkSurface>> buffers_; | 128 std::vector<skia::RefPtr<SkSurface>> buffers_; |
| 126 | 129 |
| 127 std::queue<PageFlipCallback> callbacks_; | 130 std::queue<PageFlipCallback> callbacks_; |
| 128 | 131 |
| 129 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 132 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace ui | 135 } // namespace ui |
| 133 | 136 |
| 134 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ | 137 #endif // UI_OZONE_PLATFORM_DRM_TEST_MOCK_DRM_DEVICE_H_ |
| OLD | NEW |