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

Unified Diff: ui/ozone/platform/drm/gpu/scanout_buffer.h

Issue 1314553002: Move Format checks to HardwareDisplayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InitTest Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
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() {}

Powered by Google App Engine
This is Rietveld 408576698