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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Final cleanups Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_surface_android.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index a80843e420a543933f4e01cad2ff7b78a5837b8f..9bf2a2d721803462e26af6bc91ed48801b15d778 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -22,7 +22,8 @@ EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay();
// Interface for EGL surface.
class GL_EXPORT GLSurfaceEGL : public GLSurface {
public:
- GLSurfaceEGL();
+ explicit GLSurfaceEGL(
+ const gfx::SurfaceConfiguration requested_configuration);
// Implement GLSurface.
void DestroyAndTerminateDisplay() override;
@@ -50,7 +51,9 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
// Encapsulates an EGL surface bound to a view.
class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
public:
- explicit NativeViewGLSurfaceEGL(EGLNativeWindowType window);
+ NativeViewGLSurfaceEGL(
+ EGLNativeWindowType window,
+ const gfx::SurfaceConfiguration requested_configuration);
// Implement GLSurface.
EGLConfig GetConfig() override;
@@ -93,7 +96,8 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
// Encapsulates a pbuffer EGL surface.
class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
public:
- explicit PbufferGLSurfaceEGL(const gfx::Size& size);
+ PbufferGLSurfaceEGL(const gfx::Size& size,
+ const gfx::SurfaceConfiguration requested_configuration);
// Implement GLSurface.
EGLConfig GetConfig() override;
@@ -112,6 +116,7 @@ class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
private:
gfx::Size size_;
EGLSurface surface_;
+ EGLConfig config_;
DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
};
@@ -121,7 +126,8 @@ class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
// need to create a dummy EGLsurface in case we render to client API targets.
class GL_EXPORT SurfacelessEGL : public GLSurfaceEGL {
public:
- explicit SurfacelessEGL(const gfx::Size& size);
+ SurfacelessEGL(const gfx::Size& size,
+ SurfaceConfiguration requested_configuration);
// Implement GLSurface.
EGLConfig GetConfig() override;
« no previous file with comments | « ui/gl/gl_surface_android.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698