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

Unified Diff: Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp

Issue 13046002: Revert 146458 "[EFL][WebGL] Implement a common GraphicsSurface I..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1451/
Patch Set: Created 7 years, 9 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
Index: Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp
===================================================================
--- Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp (revision 146732)
+++ Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp (working copy)
@@ -54,6 +54,20 @@
return nullptr;
}
+PassOwnPtr<GLPlatformSurface> GLPlatformSurface::createTransportSurface(SurfaceAttributes attributes)
+{
+#if USE(GLX)
+ OwnPtr<GLPlatformSurface> surface = adoptPtr(new GLXTransportSurface(attributes));
+#elif USE(EGL)
+ OwnPtr<GLPlatformSurface> surface = adoptPtr(new EGLWindowTransportSurface(attributes));
+#endif
+
+ if (surface && surface->handle() && surface->drawable())
+ return surface.release();
+
+ return nullptr;
+}
+
GLPlatformSurface::GLPlatformSurface(SurfaceAttributes)
: m_sharedDisplay(0)
, m_drawable(0)

Powered by Google App Engine
This is Rietveld 408576698