| Index: cc/test/web_compositor_initializer.h
|
| diff --git a/cc/test/web_compositor_initializer.h b/cc/test/web_compositor_initializer.h
|
| index 638cbb270ce9b24689d5095baf174ade4f4d1a13..f6203b117bc4a848c194ec0df07b7a4006bd8fe5 100644
|
| --- a/cc/test/web_compositor_initializer.h
|
| +++ b/cc/test/web_compositor_initializer.h
|
| @@ -1,3 +1,36 @@
|
| // 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 "base/basictypes.h"
|
| +#include <public/Platform.h>
|
| +#include <public/WebCompositorSupport.h>
|
| +
|
| +namespace WebKit {
|
| +class WebThread;
|
| +}
|
| +
|
| +namespace WebKitTests {
|
| +
|
| +class WebCompositorInitializer {
|
| +public:
|
| + explicit WebCompositorInitializer(WebKit::WebThread* thread)
|
| + {
|
| + WebKit::Platform::current()->compositorSupport()->initialize(thread);
|
| + }
|
| +
|
| + ~WebCompositorInitializer()
|
| + {
|
| + WebKit::Platform::current()->compositorSupport()->shutdown();
|
| + }
|
| +
|
| +private:
|
| + DISALLOW_COPY_AND_ASSIGN(WebCompositorInitializer);
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // WebCompositorInitializer_h
|
|
|