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

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

Issue 1140683002: glBindTexImage2DCHROMIUM should retain pixel format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GetInternalFormat override to MockGLImage. 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
« no previous file with comments | « ui/gl/gl_image_linux_dma_buffer.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ui/gl/gl_image_linux_dma_buffer.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698