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

Side by Side Diff: ui/gl/gl_image_linux_dma_buffer.cc

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gl/gl_image_linux_dma_buffer.h" 5 #include "ui/gl/gl_image_linux_dma_buffer.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #define FOURCC(a, b, c, d) \ 9 #define FOURCC(a, b, c, d) \
10 ((static_cast<uint32>(a)) | (static_cast<uint32>(b) << 8) | \ 10 ((static_cast<uint32>(a)) | (static_cast<uint32>(b) << 8) | \
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 size_.height(), 108 size_.height(),
109 EGL_LINUX_DRM_FOURCC_EXT, 109 EGL_LINUX_DRM_FOURCC_EXT,
110 FourCC(format), 110 FourCC(format),
111 EGL_DMA_BUF_PLANE0_FD_EXT, 111 EGL_DMA_BUF_PLANE0_FD_EXT,
112 handle.fd, 112 handle.fd,
113 EGL_DMA_BUF_PLANE0_OFFSET_EXT, 113 EGL_DMA_BUF_PLANE0_OFFSET_EXT,
114 0, 114 0,
115 EGL_DMA_BUF_PLANE0_PITCH_EXT, 115 EGL_DMA_BUF_PLANE0_PITCH_EXT,
116 pitch, 116 pitch,
117 EGL_NONE}; 117 EGL_NONE};
118 return GLImageEGL::Initialize( 118 return GLImageEGL::Initialize(EGL_LINUX_DMA_BUF_EXT,
119 EGL_LINUX_DMA_BUF_EXT, static_cast<EGLClientBuffer>(NULL), attrs); 119 static_cast<EGLClientBuffer>(nullptr), attrs);
reveman 2015/05/11 16:40:56 nit: I'd avoid this style change and leave this fi
dshwang 2015/05/14 12:25:47 Done.
120 } 120 }
121 121
122 } // namespace gfx 122 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698