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

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

Issue 215143002: ui: Add Linux dma-buf implementation of GLImage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
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/gfx/gpu_memory_buffer.h"
9 #include "ui/gl/gl_image_egl.h"
10
11 namespace gfx {
12
13 class GL_EXPORT GLImageLinuxDMABuffer : public GLImageEGL {
14 public:
15 GLImageLinuxDMABuffer(const gfx::Size& size, unsigned internalformat);
16
17 bool Initialize(const base::FileDescriptor& handle,
18 gfx::GpuMemoryBuffer::Format format,
19 int pitch);
20
21 protected:
22 virtual ~GLImageLinuxDMABuffer();
23
24 private:
25 unsigned internalformat_;
26
27 DISALLOW_COPY_AND_ASSIGN(GLImageLinuxDMABuffer);
28 };
29
30 } // namespace gfx
31
32 #endif // UI_GL_GL_IMAGE_LINUX_DMA_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698