| 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_SCANOUT_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 friend class base::RefCountedThreadSafe<ScanoutBuffer>; | 43 friend class base::RefCountedThreadSafe<ScanoutBuffer>; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 class ScanoutBufferGenerator { | 46 class ScanoutBufferGenerator { |
| 47 public: | 47 public: |
| 48 virtual ~ScanoutBufferGenerator() {} | 48 virtual ~ScanoutBufferGenerator() {} |
| 49 | 49 |
| 50 virtual scoped_refptr<ScanoutBuffer> Create( | 50 virtual scoped_refptr<ScanoutBuffer> Create( |
| 51 const scoped_refptr<DrmDevice>& drm, | 51 const scoped_refptr<DrmDevice>& drm, |
| 52 gfx::BufferFormat format, | 52 uint32_t format, |
| 53 const gfx::Size& size) = 0; | 53 const gfx::Size& size) = 0; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace ui | 56 } // namespace ui |
| 57 | 57 |
| 58 #endif // UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ | 58 #endif // UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ |
| OLD | NEW |