From 9193034b79e3dea131a859e136302cf5ec3e44ff Mon Sep 17 00:00:00 2001 From: "piman@chromium.org" Date: Mon, 12 Mar 2012 19:51:22 +0000 Subject: Fix --single-process mode issues with GpuChannelHostFactory GpuChannelHostFactory itself is no longer a singleton, we pass it explicitly to WebGraphicsContext3DCommandBufferImpl. That prevents RenderThreadImpl and BrowserGpuChannelHostFactory from stomping on each other in --single-process mode BUG=117594 TEST=see bug Review URL: http://codereview.chromium.org/9667012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126194 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/webkitplatformsupport_impl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/common/webkitplatformsupport_impl.h') diff --git a/content/common/webkitplatformsupport_impl.h b/content/common/webkitplatformsupport_impl.h index 6cadfde..d92d4b4 100644 --- a/content/common/webkitplatformsupport_impl.h +++ b/content/common/webkitplatformsupport_impl.h @@ -10,6 +10,8 @@ #include "content/common/content_export.h" #include "webkit/glue/webkitplatformsupport_impl.h" +class GpuChannelHostFactory; + namespace content { // This is a specialization of WebKitPlatformSupportImpl that implements the @@ -32,6 +34,9 @@ class CONTENT_EXPORT WebKitPlatformSupportImpl webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( const WebKit::WebGraphicsContext3D::Attributes& attributes); + + protected: + virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); }; } // namespace content -- cgit v1.1