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

Unified Diff: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h

Issue 2361023003: Revert of Add ClientNativePixmap multi-planar support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Patch Set: 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
Index: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
diff --git a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
index 98172352bb4c5034eca6f40dde0111c60105a95c..4fef3923c0076c04f21fde42feff8e86dd800217 100644
--- a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
+++ b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
@@ -12,33 +12,32 @@
#include "base/files/scoped_file.h"
#include "base/macros.h"
#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/native_pixmap_handle.h"
#include "ui/ozone/public/client_native_pixmap.h"
namespace ui {
class ClientNativePixmapDmaBuf : public ClientNativePixmap {
public:
- static std::unique_ptr<ClientNativePixmap> ImportFromDmabuf(
- const gfx::NativePixmapHandle& handle,
- const gfx::Size& size);
+ static std::unique_ptr<ClientNativePixmap>
+ ImportFromDmabuf(int dmabuf_fd, const gfx::Size& size, int stride);
~ClientNativePixmapDmaBuf() override;
// Overridden from ClientNativePixmap.
- bool Map() override;
+ void* Map() override;
void Unmap() override;
-
- void* GetMemoryAddress(size_t plane) const override;
- int GetStride(size_t plane) const override;
+ void GetStride(int* stride) const override;
private:
- ClientNativePixmapDmaBuf(const gfx::NativePixmapHandle& handle,
- const gfx::Size& size);
+ ClientNativePixmapDmaBuf(int dmabuf_fd,
+ const gfx::Size& size,
+ int stride,
+ size_t map_size);
- const gfx::NativePixmapHandle pixmap_handle_;
+ base::ScopedFD dmabuf_fd_;
+ const size_t map_size_;
const gfx::Size size_;
- base::ScopedFD dmabuf_fd_;
+ const int stride_;
void* data_;
DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapDmaBuf);
« no previous file with comments | « ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc ('k') | ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698