OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SURFACE_EGL_H_ | 5 #ifndef UI_GL_GL_SURFACE_EGL_H_ |
6 #define UI_GL_GL_SURFACE_EGL_H_ | 6 #define UI_GL_GL_SURFACE_EGL_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 protected: | 51 protected: |
52 virtual ~GLSurfaceEGL(); | 52 virtual ~GLSurfaceEGL(); |
53 | 53 |
54 bool software_; | 54 bool software_; |
55 | 55 |
56 private: | 56 private: |
57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); | 57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); |
58 }; | 58 }; |
59 | 59 |
60 // Encapsulates an EGL surface bound to a view. | 60 // Encapsulates an EGL surface bound to a view. |
61 class NativeViewGLSurfaceEGL : public GLSurfaceEGL { | 61 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { |
62 public: | 62 public: |
63 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window); | 63 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window); |
64 | 64 |
65 // Implement GLSurface. | 65 // Implement GLSurface. |
66 virtual EGLConfig GetConfig() OVERRIDE; | 66 virtual EGLConfig GetConfig() OVERRIDE; |
67 virtual bool Initialize() OVERRIDE; | 67 virtual bool Initialize() OVERRIDE; |
68 virtual void Destroy() OVERRIDE; | 68 virtual void Destroy() OVERRIDE; |
69 virtual bool Resize(const gfx::Size& size) OVERRIDE; | 69 virtual bool Resize(const gfx::Size& size) OVERRIDE; |
70 virtual bool IsOffscreen() OVERRIDE; | 70 virtual bool IsOffscreen() OVERRIDE; |
71 virtual bool SwapBuffers() OVERRIDE; | 71 virtual bool SwapBuffers() OVERRIDE; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 private: | 109 private: |
110 gfx::Size size_; | 110 gfx::Size size_; |
111 EGLSurface surface_; | 111 EGLSurface surface_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace gfx | 116 } // namespace gfx |
117 | 117 |
118 #endif // UI_GL_GL_SURFACE_EGL_H_ | 118 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |