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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 IsOffscreen() OVERRIDE; | 70 virtual bool IsOffscreen() OVERRIDE; |
70 virtual bool SwapBuffers() OVERRIDE; | 71 virtual bool SwapBuffers() OVERRIDE; |
71 virtual gfx::Size GetSize() OVERRIDE; | 72 virtual gfx::Size GetSize() OVERRIDE; |
72 virtual EGLSurface GetHandle() OVERRIDE; | 73 virtual EGLSurface GetHandle() OVERRIDE; |
73 virtual std::string GetExtensions() OVERRIDE; | 74 virtual std::string GetExtensions() OVERRIDE; |
74 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 75 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
75 | 76 |
76 protected: | 77 protected: |
77 virtual ~NativeViewGLSurfaceEGL(); | 78 virtual ~NativeViewGLSurfaceEGL(); |
78 void SetHandle(EGLSurface surface); | 79 void SetHandle(EGLSurface surface); |
(...skipping 29 matching lines...) Expand all Loading... |
108 private: | 109 private: |
109 gfx::Size size_; | 110 gfx::Size size_; |
110 EGLSurface surface_; | 111 EGLSurface surface_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 113 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace gfx | 116 } // namespace gfx |
116 | 117 |
117 #endif // UI_GL_GL_SURFACE_EGL_H_ | 118 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |