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

Unified 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 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 8a5cd13cc622297fa1f7d2257a3f4ceb6a5e4d4e..b6b588562dffdf19c948e107ff380c3a7264733e 100644
--- a/ui/ozone/platform/drm/gpu/scanout_buffer.h
+++ b/ui/ozone/platform/drm/gpu/scanout_buffer.h
@@ -34,6 +34,9 @@ class ScanoutBuffer : public base::RefCountedThreadSafe<ScanoutBuffer> {
// scanout when used as an opaque buffer.
virtual uint32_t GetOpaqueFramebufferPixelFormat() const = 0;
+ // Returns format modifier for buffer.
+ virtual uint64_t GetFormatModifier() 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_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