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

Side by Side Diff: services/ui/public/cpp/context_provider.h

Issue 2537343006: services: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of master #2 Created 4 years 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « services/ui/gpu/gpu_service_internal.h ('k') | services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698