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

Unified Diff: ui/ozone/public/client_native_pixmap.h

Issue 2272153002: Add ClientNativePixmap multi-planar support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Patch Set: ifdef USE_OZONE for unused variables. Created 4 years, 3 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/gbm_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/client_native_pixmap.h
diff --git a/ui/ozone/public/client_native_pixmap.h b/ui/ozone/public/client_native_pixmap.h
index e7aa3615d84234327f847744057dbd2214203541..a94e34fb9fdb5e796f909412df24422924775ccb 100644
--- a/ui/ozone/public/client_native_pixmap.h
+++ b/ui/ozone/public/client_native_pixmap.h
@@ -16,9 +16,13 @@ class OZONE_EXPORT ClientNativePixmap {
public:
virtual ~ClientNativePixmap() {}
- virtual void* Map() = 0;
+ // Map each plane in the client address space.
+ // Return false on error.
+ virtual bool Map() = 0;
virtual void Unmap() = 0;
- virtual void GetStride(int* stride) const = 0;
+
+ virtual void* GetMemoryAddress(size_t plane) const = 0;
+ virtual int GetStride(size_t plane) const = 0;
};
} // namespace ui
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698