| 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 "third_party/WebKit/Source/Platform/chromium/public/WebCompositor.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositor.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 class CCThread; | 11 class Thread; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 | 15 |
| 16 class WebThread; | 16 class WebThread; |
| 17 | 17 |
| 18 class WebCompositorImpl : public WebCompositor { | 18 class WebCompositorImpl : public WebCompositor { |
| 19 public: | 19 public: |
| 20 static bool initialized(); | 20 static bool initialized(); |
| 21 | 21 |
| 22 static void initialize(WebThread* implThread); | 22 static void initialize(WebThread* implThread); |
| 23 static bool isThreadingEnabled(); | 23 static bool isThreadingEnabled(); |
| 24 static void shutdown(); | 24 static void shutdown(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 static bool s_initialized; | 27 static bool s_initialized; |
| 28 static cc::CCThread* s_mainThread; | 28 static cc::Thread* s_mainThread; |
| 29 static cc::CCThread* s_implThread; | 29 static cc::Thread* s_implThread; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } | 32 } |
| 33 | 33 |
| 34 #endif // WebCompositorImpl_h | 34 #endif // WebCompositorImpl_h |
| OLD | NEW |