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

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

Issue 2586803003: Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: Rebase, update comment for alpha semantics Created 3 years, 11 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // These aren't particularly tied to surfaces, but since we already 86 // These aren't particularly tied to surfaces, but since we already
87 // have the static InitializeOneOff here, it's easiest to reuse its 87 // have the static InitializeOneOff here, it's easiest to reuse its
88 // initialization guards. 88 // initialization guards.
89 static const char* GetEGLExtensions(); 89 static const char* GetEGLExtensions();
90 static bool HasEGLExtension(const char* name); 90 static bool HasEGLExtension(const char* name);
91 static bool IsCreateContextRobustnessSupported(); 91 static bool IsCreateContextRobustnessSupported();
92 static bool IsCreateContextBindGeneratesResourceSupported(); 92 static bool IsCreateContextBindGeneratesResourceSupported();
93 static bool IsCreateContextWebGLCompatabilitySupported(); 93 static bool IsCreateContextWebGLCompatabilitySupported();
94 static bool IsEGLSurfacelessContextSupported(); 94 static bool IsEGLSurfacelessContextSupported();
95 static bool IsEGLContextPrioritySupported();
95 static bool IsDirectCompositionSupported(); 96 static bool IsDirectCompositionSupported();
96 97
97 protected: 98 protected:
98 ~GLSurfaceEGL() override; 99 ~GLSurfaceEGL() override;
99 100
100 EGLConfig config_ = nullptr; 101 EGLConfig config_ = nullptr;
101 GLSurfaceFormat format_; 102 GLSurfaceFormat format_;
102 103
103 private: 104 private:
104 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 105 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 ~SurfacelessEGL() override; 237 ~SurfacelessEGL() override;
237 238
238 private: 239 private:
239 gfx::Size size_; 240 gfx::Size size_;
240 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 241 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
241 }; 242 };
242 243
243 } // namespace gl 244 } // namespace gl
244 245
245 #endif // UI_GL_GL_SURFACE_EGL_H_ 246 #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