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

Unified Diff: webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc

Issue 135753006: cc: Delete ContextProvider::MakeGrContextCurrent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deleted GR_GL_PER_GL_FUNC_CALLBACK guard 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 | « webkit/common/gpu/context_provider_in_process.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
diff --git a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
index 61f605cef8b9ce44d699e8a67b9adda6cb27ceeb..947a515aaffef9d4ad6314f4e184cdfdc4572eb8 100644
--- a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
+++ b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
@@ -14,10 +14,8 @@ namespace gpu {
static void BindWebGraphicsContext3DGLContextCallback(
const GrGLInterface* interface) {
-#if GR_GL_PER_GL_FUNC_CALLBACK
reinterpret_cast<blink::WebGraphicsContext3D*>(
interface->fCallbackData)->makeContextCurrent();
-#endif
}
GrContextForWebGraphicsContext3D::GrContextForWebGraphicsContext3D(
@@ -30,11 +28,9 @@ GrContextForWebGraphicsContext3D::GrContextForWebGraphicsContext3D(
if (!interface)
return;
-#if GR_GL_PER_GL_FUNC_CALLBACK
interface->fCallback = BindWebGraphicsContext3DGLContextCallback;
interface->fCallbackData =
reinterpret_cast<GrGLInterfaceCallbackData>(context3d);
-#endif
gr_context_ = skia::AdoptRef(GrContext::Create(
kOpenGL_GrBackend,
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698