| 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_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_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 namespace service { |
| 20 | 19 |
| 21 // The default factory that creates in-process contexts. | 20 // The default factory that creates in-process contexts. |
| 22 class ContextFactoryImpl : public ui::ContextFactory { | 21 class ContextFactoryImpl : public ui::ContextFactory { |
| 23 public: | 22 public: |
| 24 explicit ContextFactoryImpl(ScopedMessagePipeHandle command_buffer_handle); | 23 explicit ContextFactoryImpl(ScopedMessagePipeHandle command_buffer_handle); |
| 25 virtual ~ContextFactoryImpl(); | 24 virtual ~ContextFactoryImpl(); |
| 26 | 25 |
| 27 // ContextFactory implementation | 26 // ContextFactory implementation |
| 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 27 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 46 | 45 |
| 47 ScopedMessagePipeHandle command_buffer_handle_; | 46 ScopedMessagePipeHandle command_buffer_handle_; |
| 48 | 47 |
| 49 // TODO(sky): for debugging, remove. | 48 // TODO(sky): for debugging, remove. |
| 50 bool did_create_; | 49 bool did_create_; |
| 51 | 50 |
| 52 DISALLOW_COPY_AND_ASSIGN(ContextFactoryImpl); | 51 DISALLOW_COPY_AND_ASSIGN(ContextFactoryImpl); |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace service | 54 } // namespace service |
| 56 } // namespace view_manager | |
| 57 } // namespace mojo | 55 } // namespace mojo |
| 58 | 56 |
| 59 #endif // MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_ | 57 #endif // MOJO_SERVICES_VIEW_MANAGER_CONTEXT_FACTORY_IMPL_H_ |
| OLD | NEW |