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

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 12378094: Implement WebKit::Platform::isThreadedCompositingEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/support/test_webkit_platform_support.h
diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h
index 030e86fa08a730f744546e842a9cb8c104c6327a..a68be906172a782e61b65be92f0c685ed4c8ac27 100644
--- a/webkit/support/test_webkit_platform_support.h
+++ b/webkit/support/test_webkit_platform_support.h
@@ -91,6 +91,7 @@ class TestWebKitPlatformSupport :
virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D();
virtual GrContext* sharedOffscreenGrContext();
virtual bool canAccelerate2dCanvas();
+ virtual bool isThreadedCompositingEnabled();
WebURLLoaderMockFactory* url_loader_factory() {
return &url_loader_factory_;
@@ -164,6 +165,10 @@ class TestWebKitPlatformSupport :
virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
TestViewType type);
+ void set_threaded_compositing_enabled(bool enabled) {
+ threaded_compositing_enabled_ = enabled;
+ }
+
private:
TestShellWebMimeRegistryImpl mime_registry_;
MockWebClipboardImpl mock_clipboard_;
@@ -181,6 +186,7 @@ class TestWebKitPlatformSupport :
bool unit_test_mode_;
WebKit::WebGamepads gamepad_data_;
WebKit::Platform* shadow_platform_delegate_;
+ bool threaded_compositing_enabled_;
scoped_refptr<cc::ContextProvider> main_thread_contexts_;
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698