OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ | 5 #ifndef UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ |
6 #define UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ | 6 #define UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ |
7 | 7 |
8 #include "ui/compositor/compositor.h" | 8 #include "ui/compositor/compositor.h" |
9 | 9 |
10 namespace webkit { | 10 namespace webkit { |
(...skipping 19 matching lines...) Expand all Loading... |
30 Layer* layer) OVERRIDE; | 30 Layer* layer) OVERRIDE; |
31 virtual void RemoveReflector(scoped_refptr<Reflector> reflector) OVERRIDE; | 31 virtual void RemoveReflector(scoped_refptr<Reflector> reflector) OVERRIDE; |
32 | 32 |
33 virtual scoped_refptr<cc::ContextProvider> | 33 virtual scoped_refptr<cc::ContextProvider> |
34 OffscreenCompositorContextProvider() OVERRIDE; | 34 OffscreenCompositorContextProvider() OVERRIDE; |
35 virtual scoped_refptr<cc::ContextProvider> | 35 virtual scoped_refptr<cc::ContextProvider> |
36 SharedMainThreadContextProvider() OVERRIDE; | 36 SharedMainThreadContextProvider() OVERRIDE; |
37 virtual void RemoveCompositor(Compositor* compositor) OVERRIDE; | 37 virtual void RemoveCompositor(Compositor* compositor) OVERRIDE; |
38 virtual bool DoesCreateTestContexts() OVERRIDE; | 38 virtual bool DoesCreateTestContexts() OVERRIDE; |
39 | 39 |
40 bool Initialize(); | |
41 | |
42 private: | 40 private: |
43 scoped_refptr<webkit::gpu::ContextProviderInProcess> | 41 scoped_refptr<webkit::gpu::ContextProviderInProcess> |
44 offscreen_compositor_contexts_; | 42 offscreen_compositor_contexts_; |
45 scoped_refptr<webkit::gpu::ContextProviderInProcess> | 43 scoped_refptr<webkit::gpu::ContextProviderInProcess> |
46 shared_main_thread_contexts_; | 44 shared_main_thread_contexts_; |
47 | 45 |
48 DISALLOW_COPY_AND_ASSIGN(DefaultContextFactory); | 46 DISALLOW_COPY_AND_ASSIGN(DefaultContextFactory); |
49 }; | 47 }; |
50 | 48 |
51 } // namespace ui | 49 } // namespace ui |
52 | 50 |
53 #endif // UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ | 51 #endif // UI_COMPOSITOR_TEST_DEFAULT_CONTEXT_FACTORY_H_ |
OLD | NEW |