| 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
|
|
|