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

Unified Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc

Issue 7753035: Allow each WGC3D subclass to determine the correct GrGLInterface for its GrContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
===================================================================
--- content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc (revision 98420)
+++ content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc (working copy)
@@ -71,7 +71,6 @@
WebKit::WebView* web_view,
bool render_directly_to_web_view) {
TRACE_EVENT0("gpu", "WebGfxCtx3DCmdBfrImpl::initialize");
- webkit_glue::BindSkiaToCommandBufferGL();
RenderThread* render_thread = RenderThread::current();
if (!render_thread)
return false;
@@ -1039,6 +1038,12 @@
swapbuffers_complete_callback_ = cb;
}
+#if WEBKIT_USING_SKIA
+GrGLInterface* WebGraphicsContext3DCommandBufferImpl::grGLInterface() {
+ return webkit_glue::GetCommandBufferSkiaGLBinding();
+}
+#endif
+
namespace {
WGC3Denum convertReason(RendererGLContext::ContextLostReason reason) {
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h ('k') | ui/gfx/gl/gl_bindings_skia_in_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698