| Index: Source/web/WebMediaPlayerClientImpl.cpp
|
| diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
|
| index b6647ab54be548e0449b500a8efa795807ffb2b1..8e29cda8730ec5538cdefac1d3d6aab31d93e230 100644
|
| --- a/Source/web/WebMediaPlayerClientImpl.cpp
|
| +++ b/Source/web/WebMediaPlayerClientImpl.cpp
|
| @@ -470,9 +470,8 @@ bool WebMediaPlayerClientImpl::copyVideoTextureToPlatformTexture(WebCore::Graphi
|
| {
|
| if (!context || !m_webMediaPlayer)
|
| return false;
|
| - Extensions3D* extensions = context->extensions();
|
| - if (!extensions || !extensions->supports("GL_CHROMIUM_copy_texture") || !extensions->supports("GL_CHROMIUM_flipy")
|
| - || !extensions->canUseCopyTextureCHROMIUM(internalFormat, type, level) || !context->makeContextCurrent())
|
| + if (!context->supportsExtension("GL_CHROMIUM_copy_texture") || !context->supportsExtension("GL_CHROMIUM_flipy")
|
| + || !context->canUseCopyTextureCHROMIUM(internalFormat, type, level) || !context->makeContextCurrent())
|
| return false;
|
| WebGraphicsContext3D* webGraphicsContext3D = context->webContext();
|
| return m_webMediaPlayer->copyVideoTextureToPlatformTexture(webGraphicsContext3D, texture, level, internalFormat, type, premultiplyAlpha, flipY);
|
| @@ -568,8 +567,7 @@ void WebMediaPlayerClientImpl::paintOnAndroid(WebCore::GraphicsContext* context,
|
| if (!context || !context3D || !m_webMediaPlayer || context->paintingDisabled())
|
| return;
|
|
|
| - Extensions3D* extensions = context3D->extensions();
|
| - if (!extensions || !extensions->supports("GL_CHROMIUM_copy_texture") || !extensions->supports("GL_CHROMIUM_flipy")
|
| + if (!context3D->supportsExtension("GL_CHROMIUM_copy_texture") || !context3D->supportsExtension("GL_CHROMIUM_flipy")
|
| || !context3D->makeContextCurrent())
|
| return;
|
|
|
|
|