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

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 127163003: Completely removed the Extensions3D class (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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 | « Source/platform/graphics/gpu/SharedGraphicsContext3D.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/platform/graphics/gpu/SharedGraphicsContext3D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698