OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GFX_GL_GL_SURFACE_EGL_H_ | 5 #ifndef UI_GFX_GL_GL_SURFACE_EGL_H_ |
6 #define UI_GFX_GL_GL_SURFACE_EGL_H_ | 6 #define UI_GFX_GL_GL_SURFACE_EGL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 NativeViewGLSurfaceEGL(bool software, gfx::PluginWindowHandle window); | 56 NativeViewGLSurfaceEGL(bool software, gfx::PluginWindowHandle window); |
57 virtual ~NativeViewGLSurfaceEGL(); | 57 virtual ~NativeViewGLSurfaceEGL(); |
58 | 58 |
59 // Implement GLSurface. | 59 // Implement GLSurface. |
60 virtual bool Initialize(); | 60 virtual bool Initialize(); |
61 virtual void Destroy(); | 61 virtual void Destroy(); |
62 virtual bool IsOffscreen(); | 62 virtual bool IsOffscreen(); |
63 virtual bool SwapBuffers(); | 63 virtual bool SwapBuffers(); |
64 virtual gfx::Size GetSize(); | 64 virtual gfx::Size GetSize(); |
65 virtual EGLSurface GetHandle(); | 65 virtual EGLSurface GetHandle(); |
66 virtual bool SupportsPostSubBuffer(); | 66 virtual std::string GetExtensions(); |
67 virtual bool PostSubBuffer(int x, int y, int width, int height); | 67 virtual bool PostSubBuffer(int x, int y, int width, int height); |
68 | 68 |
69 private: | 69 private: |
70 gfx::PluginWindowHandle window_; | 70 gfx::PluginWindowHandle window_; |
71 EGLSurface surface_; | 71 EGLSurface surface_; |
72 bool supports_post_sub_buffer_; | 72 bool supports_post_sub_buffer_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); | 74 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); |
75 }; | 75 }; |
76 | 76 |
(...skipping 16 matching lines...) Expand all Loading... |
93 private: | 93 private: |
94 gfx::Size size_; | 94 gfx::Size size_; |
95 EGLSurface surface_; | 95 EGLSurface surface_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 97 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace gfx | 100 } // namespace gfx |
101 | 101 |
102 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ | 102 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |