| Index: ui/ozone/platform/drm/gpu/scanout_buffer.h
|
| diff --git a/ui/ozone/platform/drm/gpu/scanout_buffer.h b/ui/ozone/platform/drm/gpu/scanout_buffer.h
|
| index a0bd87a63a71c5ea063054e89859b095ada5c7e3..d8712fad0a19091ed56800f621755dc18f80b620 100644
|
| --- a/ui/ozone/platform/drm/gpu/scanout_buffer.h
|
| +++ b/ui/ozone/platform/drm/gpu/scanout_buffer.h
|
| @@ -20,15 +20,17 @@ class ScanoutBuffer : public base::RefCountedThreadSafe<ScanoutBuffer> {
|
| // ID allocated by the KMS API when the buffer is registered (via the handle).
|
| virtual uint32_t GetFramebufferId() const = 0;
|
|
|
| + // Returns FourCC format representing the way pixel data has been encoded in
|
| + // memory for the registered framebuffer. This can be used to check if frame
|
| + // buffer is compatible with a given hardware plane.
|
| + virtual uint32_t GetFramebufferPixelFormat() const = 0;
|
| +
|
| // Handle for the buffer. This is received when allocating the buffer.
|
| virtual uint32_t GetHandle() const = 0;
|
|
|
| // Size of the buffer.
|
| virtual gfx::Size GetSize() const = 0;
|
|
|
| - // Format of the buffer.
|
| - virtual uint32_t GetFormat() const = 0;
|
| -
|
| protected:
|
| virtual ~ScanoutBuffer() {}
|
|
|
|
|