| 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 11 matching lines...) Expand all Loading... |
| 22 typedef HDC EGLNativeDisplayType; | 22 typedef HDC EGLNativeDisplayType; |
| 23 #elif defined(USE_WAYLAND) | 23 #elif defined(USE_WAYLAND) |
| 24 typedef struct wl_display* EGLNativeDisplayType; | 24 typedef struct wl_display* EGLNativeDisplayType; |
| 25 #else | 25 #else |
| 26 typedef struct _XDisplay* EGLNativeDisplayType; | 26 typedef struct _XDisplay* EGLNativeDisplayType; |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 namespace gfx { | 29 namespace gfx { |
| 30 | 30 |
| 31 // Interface for EGL surface. | 31 // Interface for EGL surface. |
| 32 class GLSurfaceEGL : public GLSurface { | 32 class GL_EXPORT GLSurfaceEGL : public GLSurface { |
| 33 public: | 33 public: |
| 34 GLSurfaceEGL(); | 34 GLSurfaceEGL(); |
| 35 virtual ~GLSurfaceEGL(); | 35 virtual ~GLSurfaceEGL(); |
| 36 | 36 |
| 37 static bool InitializeOneOff(); | 37 static bool InitializeOneOff(); |
| 38 EGLDisplay GetDisplay(); | 38 EGLDisplay GetDisplay(); |
| 39 EGLConfig GetConfig(); | 39 EGLConfig GetConfig(); |
| 40 static EGLDisplay GetHardwareDisplay(); | 40 static EGLDisplay GetHardwareDisplay(); |
| 41 static EGLDisplay GetSoftwareDisplay(); | 41 static EGLDisplay GetSoftwareDisplay(); |
| 42 static EGLNativeDisplayType GetNativeDisplay(); | 42 static EGLNativeDisplayType GetNativeDisplay(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 private: | 86 private: |
| 87 gfx::Size size_; | 87 gfx::Size size_; |
| 88 EGLSurface surface_; | 88 EGLSurface surface_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 90 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace gfx | 93 } // namespace gfx |
| 94 | 94 |
| 95 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ | 95 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |