OLD | NEW |
| (Empty) |
1 // Copyright 2011 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 WebCompositorImpl_h | |
6 #define WebCompositorImpl_h | |
7 | |
8 #include <public/WebCompositor.h> | |
9 | |
10 #include <wtf/HashSet.h> | |
11 #include <wtf/Noncopyable.h> | |
12 #include <wtf/OwnPtr.h> | |
13 | |
14 namespace WebCore { | |
15 class CCThread; | |
16 } | |
17 | |
18 namespace WebKit { | |
19 | |
20 class WebThread; | |
21 | |
22 class WebCompositorImpl : public WebCompositor { | |
23 WTF_MAKE_NONCOPYABLE(WebCompositorImpl); | |
24 public: | |
25 static bool initialized(); | |
26 | |
27 private: | |
28 | |
29 friend class WebCompositor; | |
30 static void initialize(WebThread* implThread); | |
31 static bool threadingEnabled(); | |
32 static void shutdown(); | |
33 | |
34 static bool s_initialized; | |
35 static WebCore::CCThread* s_mainThread; | |
36 static WebCore::CCThread* s_implThread; | |
37 }; | |
38 | |
39 } | |
40 | |
41 #endif // WebCompositorImpl_h | |
OLD | NEW |