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

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

Issue 2902863002: Implement EGL context priority if supported, use in VrShell (Closed)
Patch Set: Created 3 years, 7 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_context_egl.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // These aren't particularly tied to surfaces, but since we already 66 // These aren't particularly tied to surfaces, but since we already
67 // have the static InitializeOneOff here, it's easiest to reuse its 67 // have the static InitializeOneOff here, it's easiest to reuse its
68 // initialization guards. 68 // initialization guards.
69 static const char* GetEGLExtensions(); 69 static const char* GetEGLExtensions();
70 static bool HasEGLExtension(const char* name); 70 static bool HasEGLExtension(const char* name);
71 static bool IsCreateContextRobustnessSupported(); 71 static bool IsCreateContextRobustnessSupported();
72 static bool IsCreateContextBindGeneratesResourceSupported(); 72 static bool IsCreateContextBindGeneratesResourceSupported();
73 static bool IsCreateContextWebGLCompatabilitySupported(); 73 static bool IsCreateContextWebGLCompatabilitySupported();
74 static bool IsEGLSurfacelessContextSupported(); 74 static bool IsEGLSurfacelessContextSupported();
75 static bool IsEGLContextPrioritySupported();
75 static bool IsDirectCompositionSupported(); 76 static bool IsDirectCompositionSupported();
76 77
77 protected: 78 protected:
78 ~GLSurfaceEGL() override; 79 ~GLSurfaceEGL() override;
79 80
80 EGLConfig config_ = nullptr; 81 EGLConfig config_ = nullptr;
81 GLSurfaceFormat format_; 82 GLSurfaceFormat format_;
82 83
83 private: 84 private:
84 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 85 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 ~SurfacelessEGL() override; 198 ~SurfacelessEGL() override;
198 199
199 private: 200 private:
200 gfx::Size size_; 201 gfx::Size size_;
201 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 202 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
202 }; 203 };
203 204
204 } // namespace gl 205 } // namespace gl
205 206
206 #endif // UI_GL_GL_SURFACE_EGL_H_ 207 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_context_egl.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698