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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 9443003: Remove dead WebGraphicsContext3D initialization code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile errors Created 8 years, 10 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.h
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
index d3e0641c2aaa62e74f8bc994e1374c0f333e372d..fcce88b9e3b0a21c570e5f5922d1a2e7528ccbcf 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
@@ -13,7 +13,6 @@
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/gfx/native_widget_types.h"
#if defined(USE_SKIA)
@@ -52,12 +51,11 @@ class WebGraphicsContext3DInProcessCommandBufferImpl
WebGraphicsContext3DInProcessCommandBufferImpl();
virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
+ bool Initialize(WebKit::WebGraphicsContext3D::Attributes attributes,
+ WebKit::WebGraphicsContext3D* view_context);
+
//----------------------------------------------------------------------
// WebGraphicsContext3D methods
- virtual bool initialize(WebGraphicsContext3D::Attributes attributes,
- WebKit::WebView*,
- bool renderDirectlyToWebView);
-
virtual bool makeContextCurrent();
virtual int width();
@@ -482,8 +480,6 @@ class WebGraphicsContext3DInProcessCommandBufferImpl
// The GLES2Implementation we use for OpenGL rendering.
::gpu::gles2::GLES2Implementation* gl_;
- // If rendering directly to WebView, weak pointer to it.
- WebKit::WebView* web_view_;
WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
WGC3Denum context_lost_reason_;

Powered by Google App Engine
This is Rietveld 408576698