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

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

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 1 month 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 (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>
(...skipping 27 matching lines...) Expand all
38 38
39 namespace media { 39 namespace media {
40 class MediaGpuChannelManager; 40 class MediaGpuChannelManager;
41 } 41 }
42 42
43 namespace sandbox { 43 namespace sandbox {
44 class TargetServices; 44 class TargetServices;
45 } 45 }
46 46
47 namespace content { 47 namespace content {
48 class GpuProcessControlImpl;
49 class GpuProcessLogMessageListener : logging::LogMessageListener {
50 public:
51 void OnMessage(int severity,
52 const char* file,
53 int line,
54 size_t message_start,
55 const std::string& str) override;
56 };
57
48 class GpuServiceFactory; 58 class GpuServiceFactory;
49 struct EstablishChannelParams; 59 struct EstablishChannelParams;
50 60
51 // The main thread of the GPU child process. There will only ever be one of 61 // The main thread of the GPU child process. There will only ever be one of
52 // these per process. It does process initialization and shutdown. It forwards 62 // these per process. It does process initialization and shutdown. It forwards
53 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing 63 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing
54 // rendering commands to the GPU. 64 // rendering commands to the GPU.
55 class GpuChildThread : public ChildThreadImpl, 65 class GpuChildThread : public ChildThreadImpl,
56 public gpu::GpuChannelManagerDelegate, 66 public gpu::GpuChannelManagerDelegate,
57 public base::FieldTrialList::Observer { 67 public base::FieldTrialList::Observer {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 170 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
161 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 171 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
162 172
163 // ServiceFactory for service_manager::Service hosting. 173 // ServiceFactory for service_manager::Service hosting.
164 std::unique_ptr<GpuServiceFactory> service_factory_; 174 std::unique_ptr<GpuServiceFactory> service_factory_;
165 175
166 // Bindings to the service_manager::mojom::ServiceFactory impl. 176 // Bindings to the service_manager::mojom::ServiceFactory impl.
167 mojo::BindingSet<service_manager::mojom::ServiceFactory> 177 mojo::BindingSet<service_manager::mojom::ServiceFactory>
168 service_factory_bindings_; 178 service_factory_bindings_;
169 179
180 std::unique_ptr<GpuProcessLogMessageListener> log_listener_;
181
170 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 182 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
171 }; 183 };
172 184
173 } // namespace content 185 } // namespace content
174 186
175 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 187 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698