| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // need to create a dummy EGLsurface in case we render to client API targets. | 124 // need to create a dummy EGLsurface in case we render to client API targets. |
| 125 class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL { | 125 class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL { |
| 126 public: | 126 public: |
| 127 explicit SurfacelessEGL(const gfx::Size& size); | 127 explicit SurfacelessEGL(const gfx::Size& size); |
| 128 | 128 |
| 129 // Implement GLSurface. | 129 // Implement GLSurface. |
| 130 EGLConfig GetConfig() override; | 130 EGLConfig GetConfig() override; |
| 131 bool Initialize() override; | 131 bool Initialize() override; |
| 132 void Destroy() override; | 132 void Destroy() override; |
| 133 bool IsOffscreen() override; | 133 bool IsOffscreen() override; |
| 134 bool IsSurfaceless() const override; |
| 134 bool SwapBuffers() override; | 135 bool SwapBuffers() override; |
| 135 gfx::Size GetSize() override; | 136 gfx::Size GetSize() override; |
| 136 bool Resize(const gfx::Size& size) override; | 137 bool Resize(const gfx::Size& size) override; |
| 137 EGLSurface GetHandle() override; | 138 EGLSurface GetHandle() override; |
| 138 void* GetShareHandle() override; | 139 void* GetShareHandle() override; |
| 139 | 140 |
| 140 protected: | 141 protected: |
| 141 ~SurfacelessEGL() override; | 142 ~SurfacelessEGL() override; |
| 142 | 143 |
| 143 private: | 144 private: |
| 144 gfx::Size size_; | 145 gfx::Size size_; |
| 145 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 146 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace gfx | 149 } // namespace gfx |
| 149 | 150 |
| 150 #endif // UI_GL_GL_SURFACE_EGL_H_ | 151 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |