| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Encapsulates an EGL surface bound to a view. | 53 // Encapsulates an EGL surface bound to a view. |
| 54 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { | 54 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { |
| 55 public: | 55 public: |
| 56 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window); | 56 NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window); |
| 57 | 57 |
| 58 // Implement GLSurface. | 58 // Implement GLSurface. |
| 59 virtual EGLConfig GetConfig() OVERRIDE; | 59 virtual EGLConfig GetConfig() OVERRIDE; |
| 60 virtual bool Initialize() OVERRIDE; | 60 virtual bool Initialize() OVERRIDE; |
| 61 virtual void Destroy() OVERRIDE; | 61 virtual void Destroy() OVERRIDE; |
| 62 virtual bool Resize(const gfx::Size& size) OVERRIDE; | 62 virtual bool Resize(const gfx::Size& size) OVERRIDE; |
| 63 virtual bool Recreate() OVERRIDE; |
| 63 virtual bool IsOffscreen() OVERRIDE; | 64 virtual bool IsOffscreen() OVERRIDE; |
| 64 virtual bool SwapBuffers() OVERRIDE; | 65 virtual bool SwapBuffers() OVERRIDE; |
| 65 virtual gfx::Size GetSize() OVERRIDE; | 66 virtual gfx::Size GetSize() OVERRIDE; |
| 66 virtual EGLSurface GetHandle() OVERRIDE; | 67 virtual EGLSurface GetHandle() OVERRIDE; |
| 67 virtual std::string GetExtensions() OVERRIDE; | 68 virtual std::string GetExtensions() OVERRIDE; |
| 68 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 69 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
| 69 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; | 70 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; |
| 70 | 71 |
| 71 protected: | 72 protected: |
| 72 virtual ~NativeViewGLSurfaceEGL(); | 73 virtual ~NativeViewGLSurfaceEGL(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 private: | 106 private: |
| 106 gfx::Size size_; | 107 gfx::Size size_; |
| 107 EGLSurface surface_; | 108 EGLSurface surface_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 110 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace gfx | 113 } // namespace gfx |
| 113 | 114 |
| 114 #endif // UI_GL_GL_SURFACE_EGL_H_ | 115 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |