OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef UI_GL_GL_IMAGE_EGL_H_ | 5 #ifndef UI_GL_GL_IMAGE_EGL_H_ |
6 #define UI_GL_GL_IMAGE_EGL_H_ | 6 #define UI_GL_GL_IMAGE_EGL_H_ |
7 | 7 |
8 #include "ui/gl/gl_bindings.h" // for EGLImageKHR | 8 #include "ui/gl/gl_bindings.h" // for EGLImageKHR |
9 #include "ui/gl/gl_image.h" | 9 #include "ui/gl/gl_image.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 protected: | 30 protected: |
31 virtual ~GLImageEGL(); | 31 virtual ~GLImageEGL(); |
32 | 32 |
33 private: | 33 private: |
34 EGLImageKHR egl_image_; | 34 EGLImageKHR egl_image_; |
35 gfx::Size size_; | 35 gfx::Size size_; |
36 bool release_after_use_; | 36 bool release_after_use_; |
37 bool in_use_; | 37 bool in_use_; |
38 unsigned target_; | 38 unsigned target_; |
| 39 EGLImageKHR egl_image_for_unbind_; |
| 40 GLuint texture_id_for_unbind_; |
39 | 41 |
40 DISALLOW_COPY_AND_ASSIGN(GLImageEGL); | 42 DISALLOW_COPY_AND_ASSIGN(GLImageEGL); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace gfx | 45 } // namespace gfx |
44 | 46 |
45 #endif // UI_GL_GL_IMAGE_EGL_H_ | 47 #endif // UI_GL_GL_IMAGE_EGL_H_ |
OLD | NEW |