| OLD | NEW |
| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( |
| 119 EGL_LINUX_DMA_BUF_EXT, static_cast<EGLClientBuffer>(NULL), attrs); | 119 EGL_LINUX_DMA_BUF_EXT, static_cast<EGLClientBuffer>(NULL), attrs); |
| 120 } | 120 } |
| 121 | 121 |
| 122 unsigned GLImageLinuxDMABuffer::GetInternalFormat() { return internalformat_; } |
| 123 |
| 122 } // namespace gfx | 124 } // namespace gfx |
| OLD | NEW |