| 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 MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ | 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ |
| 6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ | 6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_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 16 matching lines...) Expand all Loading... |
| 27 // ContextFactory implementation | 27 // ContextFactory implementation |
| 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 29 ui::Compositor* compositor, bool software_fallback) OVERRIDE; | 29 ui::Compositor* compositor, bool software_fallback) OVERRIDE; |
| 30 | 30 |
| 31 virtual scoped_refptr<ui::Reflector> CreateReflector( | 31 virtual scoped_refptr<ui::Reflector> CreateReflector( |
| 32 ui::Compositor* compositor, | 32 ui::Compositor* compositor, |
| 33 ui::Layer* layer) OVERRIDE; | 33 ui::Layer* layer) OVERRIDE; |
| 34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE; | 34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE; |
| 35 | 35 |
| 36 virtual scoped_refptr<cc::ContextProvider> | 36 virtual scoped_refptr<cc::ContextProvider> |
| 37 OffscreenCompositorContextProvider() OVERRIDE; | |
| 38 virtual scoped_refptr<cc::ContextProvider> | |
| 39 SharedMainThreadContextProvider() OVERRIDE; | 37 SharedMainThreadContextProvider() OVERRIDE; |
| 40 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; | 38 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; |
| 41 virtual bool DoesCreateTestContexts() OVERRIDE; | 39 virtual bool DoesCreateTestContexts() OVERRIDE; |
| 42 | 40 |
| 43 bool Initialize(); | 41 bool Initialize(); |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 scoped_refptr<webkit::gpu::ContextProviderInProcess> | 44 scoped_refptr<webkit::gpu::ContextProviderInProcess> |
| 47 offscreen_compositor_contexts_; | |
| 48 scoped_refptr<webkit::gpu::ContextProviderInProcess> | |
| 49 shared_main_thread_contexts_; | 45 shared_main_thread_contexts_; |
| 50 | 46 |
| 51 WindowTreeHostMojo* rwhm_; | 47 WindowTreeHostMojo* rwhm_; |
| 52 | 48 |
| 53 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory); | 49 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory); |
| 54 }; | 50 }; |
| 55 | 51 |
| 56 } // namespace examples | 52 } // namespace examples |
| 57 } // namespace mojo | 53 } // namespace mojo |
| 58 | 54 |
| 59 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ | 55 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ |
| OLD | NEW |