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

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

Issue 13543007: GLImage support for Android zero-copy pixel buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix minor indentation issue Created 7 years, 8 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 (c) 2013 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_EGL_H_
6 #define UI_GL_GL_IMAGE_EGL_H_
7
8 #include "ui/gl/gl_bindings.h" // for EGLImageKHR
9 #include "ui/gl/gl_image.h"
10
11
12 namespace gfx {
13
14 class GL_EXPORT GLImageEGL : public GLImage {
15 public:
16 explicit GLImageEGL(const gfx::Size& size);
17
18 bool Initialize(gfx::PixelBufferHandle buffer);
19
20 // Implement GLImage.
21 virtual void Destroy() OVERRIDE;
22 virtual gfx::Size GetSize() OVERRIDE;
23 virtual bool BindTexImage() OVERRIDE;
24 virtual void ReleaseTexImage() OVERRIDE;
25
26 protected:
27 virtual ~GLImageEGL();
28
29 private:
30 EGLImageKHR egl_image_;
31 gfx::Size size_;
32
33 DISALLOW_COPY_AND_ASSIGN(GLImageEGL);
34 };
35
36 } // namespace gfx
37
38 #endif // UI_GL_GL_IMAGE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_android.cc ('k') | ui/gl/gl_image_egl.cc » ('j') | ui/gl/gl_image_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698