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

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

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move kViewerConnect Created 6 years, 3 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
OLDNEW
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 29 matching lines...) Expand all
40 // initialization guards. 40 // initialization guards.
41 static const char* GetEGLExtensions(); 41 static const char* GetEGLExtensions();
42 static bool HasEGLExtension(const char* name); 42 static bool HasEGLExtension(const char* name);
43 static bool IsCreateContextRobustnessSupported(); 43 static bool IsCreateContextRobustnessSupported();
44 static bool IsEGLSurfacelessContextSupported(); 44 static bool IsEGLSurfacelessContextSupported();
45 45
46 protected: 46 protected:
47 virtual ~GLSurfaceEGL(); 47 virtual ~GLSurfaceEGL();
48 48
49 private: 49 private:
50 #if defined(OS_WIN)
51 static EGLDisplay GetPlatformDisplay(EGLNativeDisplayType native_display);
52 #endif
53
50 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 54 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
51 }; 55 };
52 56
53 // Encapsulates an EGL surface bound to a view. 57 // Encapsulates an EGL surface bound to a view.
54 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { 58 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
55 public: 59 public:
56 explicit NativeViewGLSurfaceEGL(EGLNativeWindowType window); 60 explicit NativeViewGLSurfaceEGL(EGLNativeWindowType window);
57 61
58 // Implement GLSurface. 62 // Implement GLSurface.
59 virtual EGLConfig GetConfig() OVERRIDE; 63 virtual EGLConfig GetConfig() OVERRIDE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual ~SurfacelessEGL(); 141 virtual ~SurfacelessEGL();
138 142
139 private: 143 private:
140 gfx::Size size_; 144 gfx::Size size_;
141 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 145 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
142 }; 146 };
143 147
144 } // namespace gfx 148 } // namespace gfx
145 149
146 #endif // UI_GL_GL_SURFACE_EGL_H_ 150 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698