| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <queue> | 12 #include <queue> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "skia/ext/refptr.h" | 16 #include "third_party/skia/include/core/SkRefCnt.h" |
| 17 #include "third_party/skia/include/core/SkSurface.h" | 17 #include "third_party/skia/include/core/SkSurface.h" |
| 18 #include "ui/ozone/platform/drm/gpu/drm_device.h" | 18 #include "ui/ozone/platform/drm/gpu/drm_device.h" |
| 19 | 19 |
| 20 namespace ui { | 20 namespace ui { |
| 21 | 21 |
| 22 // The real DrmDevice makes actual DRM calls which we can't use in unit tests. | 22 // The real DrmDevice makes actual DRM calls which we can't use in unit tests. |
| 23 class MockDrmDevice : public DrmDevice { | 23 class MockDrmDevice : public DrmDevice { |
| 24 public: | 24 public: |
| 25 MockDrmDevice(); | 25 MockDrmDevice(); |
| 26 MockDrmDevice(bool use_sync_flips, | 26 MockDrmDevice(bool use_sync_flips, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 std::map<uint32_t, uint32_t> crtc_cursor_map_; | 144 std::map<uint32_t, uint32_t> crtc_cursor_map_; |
| 145 | 145 |
| 146 std::queue<PageFlipCallback> callbacks_; | 146 std::queue<PageFlipCallback> callbacks_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); | 148 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace ui | 151 } // namespace ui |
| 152 | 152 |
| 153 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ | 153 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ |
| OLD | NEW |