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

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: rebase Created 3 years, 11 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 | « content/browser/frame_host/render_frame_host_impl.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>
(...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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 175 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
166 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 176 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
167 177
168 // ServiceFactory for service_manager::Service hosting. 178 // ServiceFactory for service_manager::Service hosting.
169 std::unique_ptr<GpuServiceFactory> service_factory_; 179 std::unique_ptr<GpuServiceFactory> service_factory_;
170 180
171 // Bindings to the service_manager::mojom::ServiceFactory impl. 181 // Bindings to the service_manager::mojom::ServiceFactory impl.
172 mojo::BindingSet<service_manager::mojom::ServiceFactory> 182 mojo::BindingSet<service_manager::mojom::ServiceFactory>
173 service_factory_bindings_; 183 service_factory_bindings_;
174 184
185 std::unique_ptr<GpuProcessLogMessageListener> log_listener_;
186
175 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 187 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
176 }; 188 };
177 189
178 } // namespace content 190 } // namespace content
179 191
180 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 192 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698