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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_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: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
===================================================================
--- webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (revision 98420)
+++ webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (working copy)
@@ -590,7 +590,6 @@
WebGraphicsContext3D::Attributes attributes,
WebKit::WebView* web_view,
bool render_directly_to_web_view) {
- webkit_glue::BindSkiaToCommandBufferGL();
// Convert WebGL context creation attributes into GLInProcessContext / EGL
// size requests.
@@ -1582,6 +1581,13 @@
return context_lost_reason_;
}
+#if WEBKIT_USING_SKIA
+GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
+ grGLInterface() {
+ return webkit_glue::GetCommandBufferSkiaGLBinding();
+}
+#endif
+
void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
// TODO(kbr): improve the precision here.
context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698