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

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

Issue 211133005: [WIP] Not for review. Zero copy. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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.gyp ('k') | ui/gl/gl_image_linux_dma_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_GL_IMAGE_LINUX_DMA_BUFFER_H_
6 #define UI_GL_GL_IMAGE_LINUX_DMA_BUFFER_H_
7
8 #include "ui/gl/gl_image_egl.h"
9
10 namespace gfx {
11
12 class GL_EXPORT GLImageLinuxDMABuffer : public GLImageEGL {
13 public:
14 GLImageLinuxDMABuffer(gfx::Size size, unsigned internalformat);
15
16 // Note: this expects the first sample to be stored at offset 0 in dma_buf and
17 // stride to be a multiple of 64.
18 bool Initialize(gfx::GpuMemoryBufferHandle buffer);
19
20 protected:
21 virtual ~GLImageLinuxDMABuffer();
22
23 private:
24 unsigned internalformat_;
25
26 DISALLOW_COPY_AND_ASSIGN(GLImageLinuxDMABuffer);
27 };
28
29 } // namespace gfx
30
31 #endif // UI_GL_GL_IMAGE_LINUX_DMA_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_linux_dma_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698