| 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 service_manager { | |
| 21 class Connector; | |
| 22 } | |
| 23 | |
| 24 namespace ui { | 20 namespace ui { |
| 25 | 21 |
| 26 class GLES2Context; | 22 class GLES2Context; |
| 27 | 23 |
| 28 class ContextProvider : public cc::ContextProvider { | 24 class ContextProvider : public cc::ContextProvider { |
| 29 public: | 25 public: |
| 30 explicit ContextProvider(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); | 26 explicit ContextProvider(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); |
| 31 | 27 |
| 32 // cc::ContextProvider implementation. | 28 // cc::ContextProvider implementation. |
| 33 bool BindToCurrentThread() override; | 29 bool BindToCurrentThread() override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 49 std::unique_ptr<GLES2Context> context_; | 45 std::unique_ptr<GLES2Context> context_; |
| 50 std::unique_ptr<cc::ContextCacheController> cache_controller_; | 46 std::unique_ptr<cc::ContextCacheController> cache_controller_; |
| 51 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host_; | 47 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host_; |
| 52 | 48 |
| 53 DISALLOW_COPY_AND_ASSIGN(ContextProvider); | 49 DISALLOW_COPY_AND_ASSIGN(ContextProvider); |
| 54 }; | 50 }; |
| 55 | 51 |
| 56 } // namespace ui | 52 } // namespace ui |
| 57 | 53 |
| 58 #endif // SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 54 #endif // SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| OLD | NEW |