summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings/web_compositor_impl.h
blob: fe63b2785f0a5a8f569182d118712e97e2319f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WebCompositorImpl_h
#define WebCompositorImpl_h

#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositor.h"

namespace cc {
class Thread;
}

namespace WebKit {

class WebThread;

class WebCompositorImpl : public WebCompositor {
public:
    static bool initialized();

    static void initialize(WebThread* implThread);
    static bool isThreadingEnabled();
    static void shutdown();

private:
    static bool s_initialized;
    static cc::Thread* s_mainThread;
    static cc::Thread* s_implThread;
};

}

#endif // WebCompositorImpl_h