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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 2819903004: Migrate GpuChildThread to use ConnectionFilter instead of the ChildThread's InterfaceRegistry to exp (Closed)
Patch Set: . Created 3 years, 8 months 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
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <queue> 11 #include <queue>
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h"
18 #include "base/metrics/field_trial.h" 19 #include "base/metrics/field_trial.h"
19 #include "base/time/time.h" 20 #include "base/time/time.h"
20 #include "build/build_config.h" 21 #include "build/build_config.h"
21 #include "content/child/child_thread_impl.h" 22 #include "content/child/child_thread_impl.h"
22 #include "content/common/associated_interface_registry_impl.h" 23 #include "content/common/associated_interface_registry_impl.h"
23 #include "gpu/command_buffer/service/gpu_preferences.h" 24 #include "gpu/command_buffer/service/gpu_preferences.h"
24 #include "gpu/config/gpu_feature_info.h" 25 #include "gpu/config/gpu_feature_info.h"
25 #include "gpu/config/gpu_info.h" 26 #include "gpu/config/gpu_info.h"
26 #include "gpu/ipc/service/gpu_channel.h" 27 #include "gpu/ipc/service/gpu_channel.h"
27 #include "gpu/ipc/service/gpu_channel_manager.h" 28 #include "gpu/ipc/service/gpu_channel_manager.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 std::unique_ptr<GpuServiceFactory> service_factory_; 124 std::unique_ptr<GpuServiceFactory> service_factory_;
124 125
125 // Bindings to the service_manager::mojom::ServiceFactory impl. 126 // Bindings to the service_manager::mojom::ServiceFactory impl.
126 mojo::BindingSet<service_manager::mojom::ServiceFactory> 127 mojo::BindingSet<service_manager::mojom::ServiceFactory>
127 service_factory_bindings_; 128 service_factory_bindings_;
128 129
129 AssociatedInterfaceRegistryImpl associated_interfaces_; 130 AssociatedInterfaceRegistryImpl associated_interfaces_;
130 std::unique_ptr<ui::GpuService> gpu_service_; 131 std::unique_ptr<ui::GpuService> gpu_service_;
131 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; 132 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_;
132 133
134 // Holds a closure that releases pending interface requests on the IO thread.
135 base::Closure release_pending_requests_closure_;
136
137 base::WeakPtrFactory<GpuChildThread> weak_factory_;
138
133 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 139 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
134 }; 140 };
135 141
136 } // namespace content 142 } // namespace content
137 143
138 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 144 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698