| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
| 14 #include "mojo/public/cpp/system/core.h" | 14 #include "mojo/public/cpp/system/core.h" |
| 15 | 15 |
| 16 namespace gpu { | 16 namespace gpu { |
| 17 class GpuChannelHost; | 17 class GpuChannelHost; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace shell { | 20 namespace service_manager { |
| 21 class Connector; | 21 class Connector; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ui { | 24 namespace ui { |
| 25 | 25 |
| 26 class GLES2Context; | 26 class GLES2Context; |
| 27 | 27 |
| 28 class ContextProvider : public cc::ContextProvider { | 28 class ContextProvider : public cc::ContextProvider { |
| 29 public: | 29 public: |
| 30 explicit ContextProvider(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); | 30 explicit ContextProvider(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 49 std::unique_ptr<GLES2Context> context_; | 49 std::unique_ptr<GLES2Context> context_; |
| 50 std::unique_ptr<cc::ContextCacheController> cache_controller_; | 50 std::unique_ptr<cc::ContextCacheController> cache_controller_; |
| 51 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host_; | 51 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(ContextProvider); | 53 DISALLOW_COPY_AND_ASSIGN(ContextProvider); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace ui | 56 } // namespace ui |
| 57 | 57 |
| 58 #endif // SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 58 #endif // SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| OLD | NEW |