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 #include "mojo/shell/context.h" | 5 #include "mojo/shell/context.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 gles2::GLES2SupportImpl::Init(); | 42 gles2::GLES2SupportImpl::Init(); |
43 } | 43 } |
44 | 44 |
45 ~Setup() { | 45 ~Setup() { |
46 } | 46 } |
47 | 47 |
48 private: | 48 private: |
49 DISALLOW_COPY_AND_ASSIGN(Setup); | 49 DISALLOW_COPY_AND_ASSIGN(Setup); |
50 }; | 50 }; |
51 | 51 |
52 static base::LazyInstance<Setup>::Leaky setup = LAZY_INSTANCE_INITIALIZER; | 52 static base::LazyInstance<Setup> setup = LAZY_INSTANCE_INITIALIZER; |
53 | 53 |
54 } // namespace | 54 } // namespace |
55 | 55 |
56 class Context::NativeViewportServiceLoader : public ServiceLoader { | 56 class Context::NativeViewportServiceLoader : public ServiceLoader { |
57 public: | 57 public: |
58 explicit NativeViewportServiceLoader(Context* context) : context_(context) {} | 58 explicit NativeViewportServiceLoader(Context* context) : context_(context) {} |
59 virtual ~NativeViewportServiceLoader() {} | 59 virtual ~NativeViewportServiceLoader() {} |
60 | 60 |
61 private: | 61 private: |
62 virtual void LoadService(ServiceManager* manager, | 62 virtual void LoadService(ServiceManager* manager, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 #if defined(USE_AURA) | 129 #if defined(USE_AURA) |
130 service_manager_.SetLoaderForURL( | 130 service_manager_.SetLoaderForURL( |
131 scoped_ptr<ServiceLoader>(), | 131 scoped_ptr<ServiceLoader>(), |
132 GURL("mojo:mojo_view_manager")); | 132 GURL("mojo:mojo_view_manager")); |
133 #endif | 133 #endif |
134 service_manager_.set_default_loader(scoped_ptr<ServiceLoader>()); | 134 service_manager_.set_default_loader(scoped_ptr<ServiceLoader>()); |
135 } | 135 } |
136 | 136 |
137 } // namespace shell | 137 } // namespace shell |
138 } // namespace mojo | 138 } // namespace mojo |
OLD | NEW |