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

Side by Side Diff: mojo/services/view_manager/context_factory_impl.h

Issue 315223004: Moves view_manager files to view_manager directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm sample_view_manager.app again Created 6 years, 6 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
« no previous file with comments | « mojo/services/view_manager/DEPS ('k') | mojo/services/view_manager/context_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_AURA_CONTEXT_FACTORY_MOJO_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
6 #define MOJO_AURA_CONTEXT_FACTORY_MOJO_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
7 7
8 #include "mojo/public/cpp/system/core.h" 8 #include "mojo/public/cpp/system/core.h"
9 #include "ui/compositor/compositor.h" 9 #include "ui/compositor/compositor.h"
10 10
11 namespace webkit { 11 namespace webkit {
12 namespace gpu { 12 namespace gpu {
13 class ContextProviderInProcess; 13 class ContextProviderInProcess;
14 } 14 }
15 } 15 }
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace view_manager {
19 namespace service {
18 20
19 // The default factory that creates in-process contexts. 21 // The default factory that creates in-process contexts.
20 class ContextFactoryMojo : public ui::ContextFactory { 22 class ContextFactoryImpl : public ui::ContextFactory {
21 public: 23 public:
22 explicit ContextFactoryMojo(ScopedMessagePipeHandle command_buffer_handle); 24 explicit ContextFactoryImpl(ScopedMessagePipeHandle command_buffer_handle);
23 virtual ~ContextFactoryMojo(); 25 virtual ~ContextFactoryImpl();
24 26
25 // ContextFactory implementation 27 // ContextFactory implementation
26 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
27 ui::Compositor* compositor, bool software_fallback) OVERRIDE; 29 ui::Compositor* compositor, bool software_fallback) OVERRIDE;
28 30
29 virtual scoped_refptr<ui::Reflector> CreateReflector( 31 virtual scoped_refptr<ui::Reflector> CreateReflector(
30 ui::Compositor* compositor, 32 ui::Compositor* compositor,
31 ui::Layer* layer) OVERRIDE; 33 ui::Layer* layer) OVERRIDE;
32 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE; 34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE;
33 35
34 virtual scoped_refptr<cc::ContextProvider> 36 virtual scoped_refptr<cc::ContextProvider>
35 SharedMainThreadContextProvider() OVERRIDE; 37 SharedMainThreadContextProvider() OVERRIDE;
36 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; 38 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE;
37 virtual bool DoesCreateTestContexts() OVERRIDE; 39 virtual bool DoesCreateTestContexts() OVERRIDE;
38 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE; 40 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE;
39 virtual base::MessageLoopProxy* GetCompositorMessageLoop() OVERRIDE; 41 virtual base::MessageLoopProxy* GetCompositorMessageLoop() OVERRIDE;
40 42
41 private: 43 private:
42 scoped_refptr<webkit::gpu::ContextProviderInProcess> 44 scoped_refptr<webkit::gpu::ContextProviderInProcess>
43 shared_main_thread_contexts_; 45 shared_main_thread_contexts_;
44 46
45 ScopedMessagePipeHandle command_buffer_handle_; 47 ScopedMessagePipeHandle command_buffer_handle_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(ContextFactoryMojo); 49 DISALLOW_COPY_AND_ASSIGN(ContextFactoryImpl);
48 }; 50 };
49 51
52 } // namespace service
53 } // namespace view_manager
50 } // namespace mojo 54 } // namespace mojo
51 55
52 #endif // MOJO_AURA_CONTEXT_FACTORY_MOJO_H_ 56 #endif // MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/DEPS ('k') | mojo/services/view_manager/context_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698