| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // DrmDevice: | 64 // DrmDevice: |
| 65 ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) override; | 65 ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) override; |
| 66 bool SetCrtc(uint32_t crtc_id, | 66 bool SetCrtc(uint32_t crtc_id, |
| 67 uint32_t framebuffer, | 67 uint32_t framebuffer, |
| 68 std::vector<uint32_t> connectors, | 68 std::vector<uint32_t> connectors, |
| 69 drmModeModeInfo* mode) override; | 69 drmModeModeInfo* mode) override; |
| 70 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override; | 70 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override; |
| 71 bool DisableCrtc(uint32_t crtc_id) override; | 71 bool DisableCrtc(uint32_t crtc_id) override; |
| 72 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override; | 72 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override; |
| 73 bool AddFramebuffer(uint32_t width, | 73 bool AddFramebuffer2(uint32_t width, |
| 74 uint32_t height, | 74 uint32_t height, |
| 75 uint8_t depth, | 75 uint32_t format, |
| 76 uint8_t bpp, | 76 uint32_t handles[4], |
| 77 uint32_t stride, | 77 uint32_t strides[4], |
| 78 uint32_t handle, | 78 uint32_t offsets[4], |
| 79 uint32_t* framebuffer) override; | 79 uint32_t* framebuffer, |
| 80 uint32_t flags) override; |
| 80 bool RemoveFramebuffer(uint32_t framebuffer) override; | 81 bool RemoveFramebuffer(uint32_t framebuffer) override; |
| 81 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override; | 82 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override; |
| 82 bool PageFlip(uint32_t crtc_id, | 83 bool PageFlip(uint32_t crtc_id, |
| 83 uint32_t framebuffer, | 84 uint32_t framebuffer, |
| 84 const PageFlipCallback& callback) override; | 85 const PageFlipCallback& callback) override; |
| 85 bool PageFlipOverlay(uint32_t crtc_id, | 86 bool PageFlipOverlay(uint32_t crtc_id, |
| 86 uint32_t framebuffer, | 87 uint32_t framebuffer, |
| 87 const gfx::Rect& location, | 88 const gfx::Rect& location, |
| 88 const gfx::Rect& source, | 89 const gfx::Rect& source, |
| 89 int overlay_plane) override; | 90 int overlay_plane) override; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::map<uint32_t, uint32_t> crtc_cursor_map_; | 142 std::map<uint32_t, uint32_t> crtc_cursor_map_; |
| 142 | 143 |
| 143 std::queue<PageFlipCallback> callbacks_; | 144 std::queue<PageFlipCallback> callbacks_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 146 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace ui | 149 } // namespace ui |
| 149 | 150 |
| 150 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ | 151 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ |
| OLD | NEW |