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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "skia/ext/refptr.h" | 10 #include "skia/ext/refptr.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int overlay_plane) OVERRIDE; | 68 int overlay_plane) OVERRIDE; |
69 virtual ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector, | 69 virtual ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector, |
70 const char* name) OVERRIDE; | 70 const char* name) OVERRIDE; |
71 virtual bool SetProperty(uint32_t connector_id, | 71 virtual bool SetProperty(uint32_t connector_id, |
72 uint32_t property_id, | 72 uint32_t property_id, |
73 uint64_t value) OVERRIDE; | 73 uint64_t value) OVERRIDE; |
74 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector, | 74 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector, |
75 const char* name) OVERRIDE; | 75 const char* name) OVERRIDE; |
76 virtual bool SetCursor(uint32_t crtc_id, | 76 virtual bool SetCursor(uint32_t crtc_id, |
77 uint32_t handle, | 77 uint32_t handle, |
78 uint32_t width, | 78 const gfx::Size& size) OVERRIDE; |
79 uint32_t height) OVERRIDE; | 79 virtual bool MoveCursor(uint32_t crtc_id, const gfx::Point& point) OVERRIDE; |
80 virtual bool MoveCursor(uint32_t crtc_id, int x, int y) OVERRIDE; | |
81 virtual void HandleEvent(drmEventContext& event) OVERRIDE; | 80 virtual void HandleEvent(drmEventContext& event) OVERRIDE; |
82 virtual bool CreateDumbBuffer(const SkImageInfo& info, | 81 virtual bool CreateDumbBuffer(const SkImageInfo& info, |
83 uint32_t* handle, | 82 uint32_t* handle, |
84 uint32_t* stride, | 83 uint32_t* stride, |
85 void** pixels) OVERRIDE; | 84 void** pixels) OVERRIDE; |
86 virtual void DestroyDumbBuffer(const SkImageInfo& info, | 85 virtual void DestroyDumbBuffer(const SkImageInfo& info, |
87 uint32_t handle, | 86 uint32_t handle, |
88 uint32_t stride, | 87 uint32_t stride, |
89 void* pixels) OVERRIDE; | 88 void* pixels) OVERRIDE; |
90 | 89 |
(...skipping 11 matching lines...) Expand all Loading... |
102 bool create_dumb_buffer_expectation_; | 101 bool create_dumb_buffer_expectation_; |
103 | 102 |
104 std::vector<skia::RefPtr<SkSurface> > buffers_; | 103 std::vector<skia::RefPtr<SkSurface> > buffers_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); | 105 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); |
107 }; | 106 }; |
108 | 107 |
109 } // namespace ui | 108 } // namespace ui |
110 | 109 |
111 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 110 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
OLD | NEW |