| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OZONE_COMMON_GL_OZONE_EGL_H_ | 5 #ifndef UI_OZONE_COMMON_GL_OZONE_EGL_H_ |
| 6 #define UI_OZONE_COMMON_GL_OZONE_EGL_H_ | 6 #define UI_OZONE_COMMON_GL_OZONE_EGL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/gl/gl_implementation.h" | 10 #include "ui/gl/gl_implementation.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 gfx::AcceleratedWidget window) override; | 35 gfx::AcceleratedWidget window) override; |
| 36 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( | 36 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( |
| 37 const gfx::Size& size) override = 0; | 37 const gfx::Size& size) override = 0; |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 // Returns native platform display handle. This is used to obtain the EGL | 40 // Returns native platform display handle. This is used to obtain the EGL |
| 41 // display connection for the native display. | 41 // display connection for the native display. |
| 42 virtual intptr_t GetNativeDisplay() = 0; | 42 virtual intptr_t GetNativeDisplay() = 0; |
| 43 | 43 |
| 44 // Sets up GL bindings for the native surface. | 44 // Sets up GL bindings for the native surface. |
| 45 virtual bool LoadGLES2Bindings() = 0; | 45 virtual bool LoadGLES2Bindings(gl::GLImplementation implementation) = 0; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(GLOzoneEGL); | 48 DISALLOW_COPY_AND_ASSIGN(GLOzoneEGL); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace ui | 51 } // namespace ui |
| 52 | 52 |
| 53 #endif // UI_OZONE_COMMON_GL_OZONE_EGL_H_ | 53 #endif // UI_OZONE_COMMON_GL_OZONE_EGL_H_ |
| OLD | NEW |