Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: webkit/gpu/test_context_provider_factory.h

Issue 16046003: Move webkit/gpu into webkit/common/gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in content/common/gpu/client/gl_helper_* Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef WEBKIT_GPU_TEST_CONTEXT_PROVIDER_FACTORY_H_
6 #define WEBKIT_GPU_TEST_CONTEXT_PROVIDER_FACTORY_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "webkit/gpu/webkit_gpu_export.h"
10
11 namespace cc {
12 class ContextProvider;
13 }
14
15 namespace webkit {
16 namespace gpu {
17 class ContextProviderInProcess;
18
19 class WEBKIT_GPU_EXPORT TestContextProviderFactory {
20 public:
21 // The returned pointer is static and should not be deleted by the caller.
22 static TestContextProviderFactory* GetInstance();
23
24 scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread();
25 scoped_refptr<cc::ContextProvider>
26 OffscreenContextProviderForCompositorThread();
27
28 private:
29 TestContextProviderFactory();
30 ~TestContextProviderFactory();
31
32 scoped_refptr<webkit::gpu::ContextProviderInProcess> main_thread_;
33 scoped_refptr<webkit::gpu::ContextProviderInProcess> compositor_thread_;
34
35 DISALLOW_COPY_AND_ASSIGN(TestContextProviderFactory);
36 };
37
38 } // namespace gpu
39 } // namespace webkit
40
41 #endif // WEBKIT_GPU_TEST_WEBKIT_CONTEXT_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « webkit/gpu/grcontext_for_webgraphicscontext3d.cc ('k') | webkit/gpu/test_context_provider_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698