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

Unified Diff: ui/gl/gl_surface.cc

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.h ('k') | ui/gl/gl_surface_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index a8275039ca75952c0c502bfce9e6f13248ba97ff..007bcafc4802f8a47e06da98d7cb2e74aca04a42 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -161,7 +161,9 @@ void GLSurface::InitializeDynamicMockBindingsForTests(GLContext* context) {
CHECK(InitializeDynamicGLBindings(kGLImplementationMockGL, context));
}
-GLSurface::GLSurface() {}
+GLSurface::GLSurface(const SurfaceConfiguration requested_configuration)
+ : surface_configuration_(requested_configuration) {
+}
bool GLSurface::Initialize() {
return true;
@@ -294,7 +296,9 @@ bool GLSurface::ExtensionsContain(const char* c_extensions, const char* name) {
void GLSurface::OnSetSwapInterval(int interval) {
}
-GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
+GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface)
+ : GLSurface(surface->get_surface_configuration()), surface_(surface) {
+}
bool GLSurfaceAdapter::Initialize() {
return surface_->Initialize();
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698