summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorbsalomon@google.com <bsalomon@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 16:40:46 +0000
committerbsalomon@google.com <bsalomon@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 16:40:46 +0000
commit1620073d2d6ab0e8954fe3d6f2bfb84e98a9554f (patch)
tree859728ab09463eed345fea9519bf8913507fae34 /content
parent96e1933fd50fb512c5e678169d0d2c59841a7d1a (diff)
downloadchromium_src-1620073d2d6ab0e8954fe3d6f2bfb84e98a9554f.zip
chromium_src-1620073d2d6ab0e8954fe3d6f2bfb84e98a9554f.tar.gz
chromium_src-1620073d2d6ab0e8954fe3d6f2bfb84e98a9554f.tar.bz2
Allow each WGC3D subclass to determine the correct GrGLInterface for its GrContext.
Review URL: http://codereview.chromium.org/7753035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc7
-rw-r--r--content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h4
2 files changed, 10 insertions, 1 deletions
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
index b9e45dc..f3b1166 100644
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
@@ -71,7 +71,6 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize(
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;
@@ -1035,6 +1034,12 @@ void WebGraphicsContext3DCommandBufferImpl::
swapbuffers_complete_callback_ = cb;
}
+#if WEBKIT_USING_SKIA
+GrGLInterface* WebGraphicsContext3DCommandBufferImpl::grGLInterface() {
+ return webkit_glue::GetCommandBufferSkiaGLBinding();
+}
+#endif
+
namespace {
WGC3Denum convertReason(RendererGLContext::ContextLostReason reason) {
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h
index 2c4e0a6..37eb884 100644
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h
@@ -430,6 +430,10 @@ class WebGraphicsContext3DCommandBufferImpl
WebGraphicsContext3D::
WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback);
+#if WEBKIT_USING_SKIA
+ virtual GrGLInterface* grGLInterface();
+#endif
+
private:
// SwapBuffers callback.
void OnSwapBuffersComplete();