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_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 50 } |
51 | 51 |
52 // DriWrapper: | 52 // DriWrapper: |
53 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) OVERRIDE; | 53 virtual ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) OVERRIDE; |
54 virtual bool SetCrtc(uint32_t crtc_id, | 54 virtual bool SetCrtc(uint32_t crtc_id, |
55 uint32_t framebuffer, | 55 uint32_t framebuffer, |
56 std::vector<uint32_t> connectors, | 56 std::vector<uint32_t> connectors, |
57 drmModeModeInfo* mode) OVERRIDE; | 57 drmModeModeInfo* mode) OVERRIDE; |
58 virtual bool SetCrtc(drmModeCrtc* crtc, | 58 virtual bool SetCrtc(drmModeCrtc* crtc, |
59 std::vector<uint32_t> connectors) OVERRIDE; | 59 std::vector<uint32_t> connectors) OVERRIDE; |
| 60 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) OVERRIDE; |
60 virtual bool AddFramebuffer(uint32_t width, | 61 virtual bool AddFramebuffer(uint32_t width, |
61 uint32_t height, | 62 uint32_t height, |
62 uint8_t depth, | 63 uint8_t depth, |
63 uint8_t bpp, | 64 uint8_t bpp, |
64 uint32_t stride, | 65 uint32_t stride, |
65 uint32_t handle, | 66 uint32_t handle, |
66 uint32_t* framebuffer) OVERRIDE; | 67 uint32_t* framebuffer) OVERRIDE; |
67 virtual bool RemoveFramebuffer(uint32_t framebuffer) OVERRIDE; | 68 virtual bool RemoveFramebuffer(uint32_t framebuffer) OVERRIDE; |
68 virtual bool PageFlip(uint32_t crtc_id, | 69 virtual bool PageFlip(uint32_t crtc_id, |
69 uint32_t framebuffer, | 70 uint32_t framebuffer, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 std::vector<skia::RefPtr<SkSurface> > buffers_; | 114 std::vector<skia::RefPtr<SkSurface> > buffers_; |
114 | 115 |
115 std::queue<HardwareDisplayController*> controllers_; | 116 std::queue<HardwareDisplayController*> controllers_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); | 118 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace ui | 121 } // namespace ui |
121 | 122 |
122 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 123 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
OLD | NEW |