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

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

Issue 2951193002: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers (Closed)
Patch Set: Created 3 years, 6 months 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 16 matching lines...) Expand all
27 27
28 // Returns FourCC format representing the way pixel data has been encoded in 28 // Returns FourCC format representing the way pixel data has been encoded in
29 // memory for the registered framebuffer. This can be used to check if frame 29 // memory for the registered framebuffer. This can be used to check if frame
30 // buffer is compatible with a given hardware plane. 30 // buffer is compatible with a given hardware plane.
31 virtual uint32_t GetFramebufferPixelFormat() const = 0; 31 virtual uint32_t GetFramebufferPixelFormat() const = 0;
32 32
33 // Returns FourCC format that should be used to schedule this buffer for 33 // Returns FourCC format that should be used to schedule this buffer for
34 // scanout when used as an opaque buffer. 34 // scanout when used as an opaque buffer.
35 virtual uint32_t GetOpaqueFramebufferPixelFormat() const = 0; 35 virtual uint32_t GetOpaqueFramebufferPixelFormat() const = 0;
36 36
37 // Returns format modifier for buffer.
38 virtual uint64_t GetFormatModifier() const = 0;
39
37 // Handle for the buffer. This is received when allocating the buffer. 40 // Handle for the buffer. This is received when allocating the buffer.
38 virtual uint32_t GetHandle() const = 0; 41 virtual uint32_t GetHandle() const = 0;
39 42
40 // Size of the buffer. 43 // Size of the buffer.
41 virtual gfx::Size GetSize() const = 0; 44 virtual gfx::Size GetSize() const = 0;
42 45
43 // Device on which the buffer was created. 46 // Device on which the buffer was created.
44 virtual const DrmDevice* GetDrmDevice() const = 0; 47 virtual const DrmDevice* GetDrmDevice() const = 0;
45 48
46 virtual bool RequiresGlFinish() const = 0; 49 virtual bool RequiresGlFinish() const = 0;
(...skipping 10 matching lines...) Expand all
57 60
58 virtual scoped_refptr<ScanoutBuffer> Create( 61 virtual scoped_refptr<ScanoutBuffer> Create(
59 const scoped_refptr<DrmDevice>& drm, 62 const scoped_refptr<DrmDevice>& drm,
60 uint32_t format, 63 uint32_t format,
61 const gfx::Size& size) = 0; 64 const gfx::Size& size) = 0;
62 }; 65 };
63 66
64 } // namespace ui 67 } // namespace ui
65 68
66 #endif // UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_ 69 #endif // UI_OZONE_PLATFORM_DRM_GPU_SCANOUT_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.cc ('k') | ui/ozone/platform/drm/gpu/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698