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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static const char* GetEGLExtensions(); 42 static const char* GetEGLExtensions();
43 static bool HasEGLExtension(const char* name); 43 static bool HasEGLExtension(const char* name);
44 static bool IsCreateContextRobustnessSupported(); 44 static bool IsCreateContextRobustnessSupported();
45 static bool IsEGLSurfacelessContextSupported(); 45 static bool IsEGLSurfacelessContextSupported();
46 46
47 protected: 47 protected:
48 ~GLSurfaceEGL() override; 48 ~GLSurfaceEGL() override;
49 49
50 private: 50 private:
51 #if defined(OS_WIN) 51 #if defined(OS_WIN)
52 friend struct DriverEGL;
52 static EGLDisplay GetPlatformDisplay(EGLNativeDisplayType native_display); 53 static EGLDisplay GetPlatformDisplay(EGLNativeDisplayType native_display);
53 #endif 54 #endif
54 55
55 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 56 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
56 }; 57 };
57 58
58 // Encapsulates an EGL surface bound to a view. 59 // Encapsulates an EGL surface bound to a view.
59 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { 60 class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
60 public: 61 public:
61 explicit NativeViewGLSurfaceEGL(EGLNativeWindowType window); 62 explicit NativeViewGLSurfaceEGL(EGLNativeWindowType window);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ~SurfacelessEGL() override; 157 ~SurfacelessEGL() override;
157 158
158 private: 159 private:
159 gfx::Size size_; 160 gfx::Size size_;
160 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 161 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
161 }; 162 };
162 163
163 } // namespace gfx 164 } // namespace gfx
164 165
165 #endif // UI_GL_GL_SURFACE_EGL_H_ 166 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698