Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: ui/ozone/platform/drm/gpu/scanout_buffer.h

Issue 2533163002: ozone: Create GbmBuffers from fourcc formats and gbm flags. (Closed)
Patch Set: Address dnicoara's comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698