OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DUMB_BUFFER_GENERATOR_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_MOCK_DUMB_BUFFER_GENERATOR_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DUMB_BUFFER_GENERATOR_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DUMB_BUFFER_GENERATOR_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" | 10 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 class MockDumbBufferGenerator : public ScanoutBufferGenerator { | 14 class MockDumbBufferGenerator : public ScanoutBufferGenerator { |
15 public: | 15 public: |
16 MockDumbBufferGenerator(); | 16 MockDumbBufferGenerator(); |
17 ~MockDumbBufferGenerator() override; | 17 ~MockDumbBufferGenerator() override; |
18 | 18 |
19 // ScanoutBufferGenerator: | 19 // ScanoutBufferGenerator: |
20 scoped_refptr<ScanoutBuffer> Create(const scoped_refptr<DrmDevice>& drm, | 20 scoped_refptr<ScanoutBuffer> Create(const scoped_refptr<DrmDevice>& drm, |
21 gfx::BufferFormat format, | 21 uint32_t format, |
22 const gfx::Size& size) override; | 22 const gfx::Size& size) override; |
23 | 23 |
24 private: | 24 private: |
25 DISALLOW_COPY_AND_ASSIGN(MockDumbBufferGenerator); | 25 DISALLOW_COPY_AND_ASSIGN(MockDumbBufferGenerator); |
26 }; | 26 }; |
27 | 27 |
28 } // namespace ui | 28 } // namespace ui |
29 | 29 |
30 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DUMB_BUFFER_GENERATOR_H_ | 30 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DUMB_BUFFER_GENERATOR_H_ |
OLD | NEW |