OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebCompositorImpl_h | 5 #ifndef WebCompositorImpl_h |
6 #define WebCompositorImpl_h | 6 #define WebCompositorImpl_h |
7 | 7 |
8 #include <public/WebCompositor.h> | 8 #include <public/WebCompositor.h> |
9 | 9 |
10 #include <wtf/HashSet.h> | 10 #include <wtf/HashSet.h> |
11 #include <wtf/Noncopyable.h> | 11 #include <wtf/Noncopyable.h> |
12 #include <wtf/OwnPtr.h> | 12 #include <wtf/OwnPtr.h> |
13 | 13 |
14 namespace WebCore { | 14 namespace cc { |
15 class CCThread; | 15 class CCThread; |
16 } | 16 } |
17 | 17 |
18 namespace WebKit { | 18 namespace WebKit { |
19 | 19 |
20 class WebThread; | 20 class WebThread; |
21 | 21 |
22 class WebCompositorImpl : public WebCompositor { | 22 class WebCompositorImpl : public WebCompositor { |
23 WTF_MAKE_NONCOPYABLE(WebCompositorImpl); | 23 WTF_MAKE_NONCOPYABLE(WebCompositorImpl); |
24 public: | 24 public: |
25 static bool initialized(); | 25 static bool initialized(); |
26 | 26 |
27 static void initialize(WebThread* implThread); | 27 static void initialize(WebThread* implThread); |
28 static bool isThreadingEnabled(); | 28 static bool isThreadingEnabled(); |
29 static void shutdown(); | 29 static void shutdown(); |
30 | 30 |
31 private: | 31 private: |
32 static bool s_initialized; | 32 static bool s_initialized; |
33 static WebCore::CCThread* s_mainThread; | 33 static cc::CCThread* s_mainThread; |
34 static WebCore::CCThread* s_implThread; | 34 static cc::CCThread* s_implThread; |
35 }; | 35 }; |
36 | 36 |
37 } | 37 } |
38 | 38 |
39 #endif // WebCompositorImpl_h | 39 #endif // WebCompositorImpl_h |
OLD | NEW |