| OLD | NEW |
| (Empty) |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebCompositorInitializer_h | |
| 6 #define WebCompositorInitializer_h | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include <public/Platform.h> | |
| 10 #include <public/WebCompositorSupport.h> | |
| 11 | |
| 12 namespace WebKit { | |
| 13 class WebThread; | |
| 14 } | |
| 15 | |
| 16 namespace WebKitTests { | |
| 17 | |
| 18 class WebCompositorInitializer { | |
| 19 public: | |
| 20 explicit WebCompositorInitializer(WebKit::WebThread* thread) | |
| 21 { | |
| 22 WebKit::Platform::current()->compositorSupport()->initialize(thread); | |
| 23 } | |
| 24 | |
| 25 ~WebCompositorInitializer() | |
| 26 { | |
| 27 WebKit::Platform::current()->compositorSupport()->shutdown(); | |
| 28 } | |
| 29 | |
| 30 private: | |
| 31 DISALLOW_COPY_AND_ASSIGN(WebCompositorInitializer); | |
| 32 }; | |
| 33 | |
| 34 } | |
| 35 | |
| 36 #endif // WebCompositorInitializer_h | |
| OLD | NEW |