Chromium Code Reviews| OLD | NEW |
|---|---|
| (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); | |
|
no sievers
2013/04/05 22:16:34
nit: gfx::Size by value
kaanb
2013/04/08 15:48:11
Done.
| |
| 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_ | |
| OLD | NEW |