Bluetooth: fix header sentry comment style
[chromium-blink-merge.git] / webkit / gpu / test_context_provider_factory.h
blobe6effbd7b416a0d9a6065fa1289fbab887b78ae6
1 // Copyright (c) 2013 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.
5 #ifndef WEBKIT_GPU_TEST_CONTEXT_PROVIDER_FACTORY_H_
6 #define WEBKIT_GPU_TEST_CONTEXT_PROVIDER_FACTORY_H_
8 #include "base/memory/ref_counted.h"
9 #include "webkit/gpu/webkit_gpu_export.h"
10 #include "webkit/support/webkit_support.h"
12 namespace cc {
13 class ContextProvider;
16 namespace webkit {
17 namespace gpu {
18 class ContextProviderInProcess;
20 class WEBKIT_GPU_EXPORT TestContextProviderFactory {
21 public:
22 // The returned pointer is static and should not be deleted by the caller.
23 static TestContextProviderFactory* GetInstance();
25 scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread();
26 scoped_refptr<cc::ContextProvider>
27 OffscreenContextProviderForCompositorThread();
29 private:
30 TestContextProviderFactory();
31 ~TestContextProviderFactory();
33 scoped_refptr<webkit::gpu::ContextProviderInProcess> main_thread_;
34 scoped_refptr<webkit::gpu::ContextProviderInProcess> compositor_thread_;
36 DISALLOW_COPY_AND_ASSIGN(TestContextProviderFactory);
39 } // namespace gpu
40 } // namespace webkit
42 #endif // WEBKIT_GPU_TEST_WEBKIT_CONTEXT_PROVIDER_FACTORY_H_