| 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 WebCore { |
| 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 private: | |
| 28 | |
| 29 friend class WebCompositor; | |
| 30 static void initialize(WebThread* implThread); | 27 static void initialize(WebThread* implThread); |
| 31 static bool threadingEnabled(); | 28 static bool isThreadingEnabled(); |
| 32 static void shutdown(); | 29 static void shutdown(); |
| 33 | 30 |
| 31 private: |
| 34 static bool s_initialized; | 32 static bool s_initialized; |
| 35 static WebCore::CCThread* s_mainThread; | 33 static WebCore::CCThread* s_mainThread; |
| 36 static WebCore::CCThread* s_implThread; | 34 static WebCore::CCThread* s_implThread; |
| 37 }; | 35 }; |
| 38 | 36 |
| 39 } | 37 } |
| 40 | 38 |
| 41 #endif // WebCompositorImpl_h | 39 #endif // WebCompositorImpl_h |
| OLD | NEW |