| 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)
|
|
|