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

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

Issue 2743403005: ozone: Add an opaque fb to ScanoutBuffer for primary planes. (Closed)
Patch Set: Replace PrimaryPlane with Opaque. Created 3 years, 9 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc ('k') | ui/ozone/platform/drm/gpu/screen_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 529490ad3ddb65c65cfc40960414a2626b8f48c1..8a5cd13cc622297fa1f7d2257a3f4ceb6a5e4d4e 100644
--- a/ui/ozone/platform/drm/gpu/scanout_buffer.h
+++ b/ui/ozone/platform/drm/gpu/scanout_buffer.h
@@ -21,11 +21,19 @@ 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;
+ // ID allocated if the buffer is also registered with a different pixel format
+ // so that it can be scheduled as an opaque buffer.
+ virtual uint32_t GetOpaqueFramebufferId() 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;
+ // Returns FourCC format that should be used to schedule this buffer for
+ // scanout when used as an opaque buffer.
+ virtual uint32_t GetOpaqueFramebufferPixelFormat() const = 0;
+
// Handle for the buffer. This is received when allocating the buffer.
virtual uint32_t GetHandle() const = 0;
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_scanout_buffer.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