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

Unified Diff: cc/test/WebCompositorInitializer.h

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « cc/test/FakeCCLayerTreeHostClient.h ('k') | webkit/compositor_bindings/LayerChromiumTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/WebCompositorInitializer.h
diff --git a/cc/test/WebCompositorInitializer.h b/cc/test/WebCompositorInitializer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4ec82989ad0df748b996b9d363aaf431f399ee7
--- /dev/null
+++ b/cc/test/WebCompositorInitializer.h
@@ -0,0 +1,34 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebCompositorInitializer_h
+#define WebCompositorInitializer_h
+
+#include <public/Platform.h>
+#include <public/WebCompositorSupport.h>
+#include <wtf/Noncopyable.h>
+
+namespace WebKit {
+class WebThread;
+}
+
+namespace WebKitTests {
+
+class WebCompositorInitializer {
+ WTF_MAKE_NONCOPYABLE(WebCompositorInitializer);
+public:
+ explicit WebCompositorInitializer(WebKit::WebThread* thread)
+ {
+ WebKit::Platform::current()->compositorSupport()->initialize(thread);
+ }
+
+ ~WebCompositorInitializer()
+ {
+ WebKit::Platform::current()->compositorSupport()->shutdown();
+ }
+};
+
+}
+
+#endif // WebCompositorInitializer_h
« no previous file with comments | « cc/test/FakeCCLayerTreeHostClient.h ('k') | webkit/compositor_bindings/LayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698