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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trybot issues fixed. Created 5 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
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 800be1759fe96331573944463123e00ce19968f2..486b30967a2aa1c6f256a0599958caa98e50e90a 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -327,9 +327,12 @@ class GL_EXPORT GLSurfaceOzoneSurfacelessSurfaceImpl
bool Initialize(scoped_refptr<ui::NativePixmap> pixmap,
gfx::GpuMemoryBuffer::Format format) {
- base::FileDescriptor handle(pixmap->GetDmaBufFd(), false);
- if (!GLImageLinuxDMABuffer::Initialize(handle, format,
- pixmap->GetDmaBufPitch()))
+ const std::vector<base::FileDescriptor> handles = {
+ base::FileDescriptor(pixmap->GetDmaBufFd(), false)};
+ const std::vector<gfx::GpuMemoryBuffer::Format> formats = {format};
+ const std::vector<int> pitches = {pixmap->GetDmaBufPitch()};
+
+ if (!GLImageLinuxDMABuffer::Initialize(1, handles, formats, pitches))
return false;
pixmap_ = pixmap;
return true;

Powered by Google App Engine
This is Rietveld 408576698