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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Implement GLSurface. | 55 // Implement GLSurface. |
56 virtual EGLConfig GetConfig() OVERRIDE; | 56 virtual EGLConfig GetConfig() OVERRIDE; |
57 virtual bool Initialize() OVERRIDE; | 57 virtual bool Initialize() OVERRIDE; |
58 virtual void Destroy() OVERRIDE; | 58 virtual void Destroy() OVERRIDE; |
59 virtual bool Resize(const gfx::Size& size) OVERRIDE; | 59 virtual bool Resize(const gfx::Size& size) OVERRIDE; |
60 virtual bool Recreate() OVERRIDE; | 60 virtual bool Recreate() OVERRIDE; |
61 virtual bool IsOffscreen() OVERRIDE; | 61 virtual bool IsOffscreen() OVERRIDE; |
62 virtual bool SwapBuffers() OVERRIDE; | 62 virtual bool SwapBuffers() OVERRIDE; |
63 virtual gfx::Size GetSize() OVERRIDE; | 63 virtual gfx::Size GetSize() OVERRIDE; |
64 virtual EGLSurface GetHandle() OVERRIDE; | 64 virtual EGLSurface GetHandle() OVERRIDE; |
65 virtual std::string GetExtensions() OVERRIDE; | 65 virtual bool SupportsPostSubBuffer() OVERRIDE; |
66 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 66 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
67 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; | 67 virtual VSyncProvider* GetVSyncProvider() OVERRIDE; |
68 | 68 |
69 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. | 69 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. |
70 // Takes ownership of the VSyncProvider. | 70 // Takes ownership of the VSyncProvider. |
71 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); | 71 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); |
72 | 72 |
73 protected: | 73 protected: |
74 virtual ~NativeViewGLSurfaceEGL(); | 74 virtual ~NativeViewGLSurfaceEGL(); |
75 void SetHandle(EGLSurface surface); | 75 void SetHandle(EGLSurface surface); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual ~SurfacelessEGL(); | 134 virtual ~SurfacelessEGL(); |
135 | 135 |
136 private: | 136 private: |
137 gfx::Size size_; | 137 gfx::Size size_; |
138 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 138 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace gfx | 141 } // namespace gfx |
142 | 142 |
143 #endif // UI_GL_GL_SURFACE_EGL_H_ | 143 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |