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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: media Created 4 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: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 6f658860ffbd8694bd395ec5b1f3fcdb12b4f23e..58134517d2fb6fd63815de5a3ec9e36c54207c41 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -1918,7 +1918,7 @@ bool WebGLRenderingContextBase::deleteObject(WebGLObject* object)
if (object->hasObject()) {
// We need to pass in context here because we want
// things in this context unbound.
- object->deleteObject(webContext(), contextGL());
+ object->deleteObject(contextGL());
}
return true;
}
@@ -2041,7 +2041,7 @@ void WebGLRenderingContextBase::detachShader(ScriptState* scriptState, WebGLProg
return;
}
contextGL()->DetachShader(objectOrZero(program), objectOrZero(shader));
- shader->onDetached(webContext(), contextGL());
+ shader->onDetached(contextGL());
preserveObjectWrapper(scriptState, program, "shader", shader->type(), nullptr);
}
@@ -4184,7 +4184,7 @@ void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLint int
// Otherwise, it will fall back to the normal SW path.
if (GL_TEXTURE_2D == target) {
if (Extensions3DUtil::canUseCopyTextureCHROMIUM(target, internalformat, type, level)
- && video->copyVideoTextureToPlatformTexture(webContext(), texture->object(), internalformat, type, m_unpackPremultiplyAlpha, m_unpackFlipY)) {
+ && video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(), internalformat, type, m_unpackPremultiplyAlpha, m_unpackFlipY)) {
return;
}
@@ -4806,7 +4806,7 @@ void WebGLRenderingContextBase::useProgram(ScriptState* scriptState, WebGLProgra
if (m_currentProgram != program) {
if (m_currentProgram)
- m_currentProgram->onDetached(webContext(), contextGL());
+ m_currentProgram->onDetached(contextGL());
m_currentProgram = program;
contextGL()->UseProgram(objectOrZero(program));
if (program)

Powered by Google App Engine
This is Rietveld 408576698