Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: ui/gfx/gl/gl_surface_egl.h

Issue 7645004: Add gl.dll, compositor.dll, and surface.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | ui/gfx/gl/gl_surface_glx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | ui/gfx/gl/gl_surface_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698