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

Unified Diff: content/common/webkitplatformsupport_impl.h

Issue 10828088: aura: use TestWebGraphicsContext3D for the shared contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 5 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/common/webkitplatformsupport_impl.h
diff --git a/content/common/webkitplatformsupport_impl.h b/content/common/webkitplatformsupport_impl.h
index 1ceb213065a81d1b60226747536bc78cec7b34a2..f579ce0d55fd29d9340a761992e411612937659a 100644
--- a/content/common/webkitplatformsupport_impl.h
+++ b/content/common/webkitplatformsupport_impl.h
@@ -19,6 +19,8 @@ namespace content {
class CONTENT_EXPORT WebKitPlatformSupportImpl
: NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) {
public:
+ typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)();
+
WebKitPlatformSupportImpl();
virtual ~WebKitPlatformSupportImpl();
@@ -37,6 +39,9 @@ class CONTENT_EXPORT WebKitPlatformSupportImpl
virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes);
+ static void SetOffscreenContextFactoryForTest(
+ OffscreenContextFactory factory);
+
protected:
virtual GpuChannelHostFactory* GetGpuChannelHostFactory();
};
@@ -44,4 +49,3 @@ class CONTENT_EXPORT WebKitPlatformSupportImpl
} // namespace content
#endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_
-
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | content/common/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698