| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 APP_GFX_GL_GL_CONTEXT_EGL_H_ | 5 #ifndef APP_GFX_GL_GL_CONTEXT_EGL_H_ |
| 6 #define APP_GFX_GL_GL_CONTEXT_EGL_H_ | 6 #define APP_GFX_GL_GL_CONTEXT_EGL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/gfx/gl/gl_context.h" | 9 #include "app/gfx/gl/gl_context.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "gfx/size.h" | 11 #include "ui/gfx/size.h" |
| 12 | 12 |
| 13 typedef void* EGLDisplay; | 13 typedef void* EGLDisplay; |
| 14 typedef void* EGLContext; | 14 typedef void* EGLContext; |
| 15 typedef void* EGLSurface; | 15 typedef void* EGLSurface; |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 | 18 |
| 19 // Takes ownership of an EGL surface and reference counts it so it can be shared | 19 // Takes ownership of an EGL surface and reference counts it so it can be shared |
| 20 // by multiple EGL contexts and destroyed with the last. | 20 // by multiple EGL contexts and destroyed with the last. |
| 21 class SharedEGLSurface : public base::RefCounted<SharedEGLSurface> { | 21 class SharedEGLSurface : public base::RefCounted<SharedEGLSurface> { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 private: | 110 private: |
| 111 scoped_refptr<SharedEGLSurface> surface_; | 111 scoped_refptr<SharedEGLSurface> surface_; |
| 112 EGLContext context_; | 112 EGLContext context_; |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(SecondaryEGLContext); | 114 DISALLOW_COPY_AND_ASSIGN(SecondaryEGLContext); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace gfx | 117 } // namespace gfx |
| 118 | 118 |
| 119 #endif // APP_GFX_GL_GL_CONTEXT_EGL_H_ | 119 #endif // APP_GFX_GL_GL_CONTEXT_EGL_H_ |
| OLD | NEW |