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

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

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/child/child_thread.h" 17 #include "content/child/child_thread_impl.h"
18 #include "content/common/gpu/gpu_channel.h" 18 #include "content/common/gpu/gpu_channel.h"
19 #include "content/common/gpu/gpu_channel_manager.h" 19 #include "content/common/gpu/gpu_channel_manager.h"
20 #include "content/common/gpu/gpu_config.h" 20 #include "content/common/gpu/gpu_config.h"
21 #include "content/common/gpu/x_util.h" 21 #include "content/common/gpu/x_util.h"
22 #include "gpu/config/gpu_info.h" 22 #include "gpu/config/gpu_info.h"
23 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
24 24
25 namespace sandbox { 25 namespace sandbox {
26 class TargetServices; 26 class TargetServices;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 class GpuWatchdogThread; 30 class GpuWatchdogThread;
31 31
32 // The main thread of the GPU child process. There will only ever be one of 32 // The main thread of the GPU child process. There will only ever be one of
33 // these per process. It does process initialization and shutdown. It forwards 33 // these per process. It does process initialization and shutdown. It forwards
34 // IPC messages to GpuChannelManager, which is responsible for issuing rendering 34 // IPC messages to GpuChannelManager, which is responsible for issuing rendering
35 // commands to the GPU. 35 // commands to the GPU.
36 class GpuChildThread : public ChildThread { 36 class GpuChildThread : public ChildThreadImpl {
37 public: 37 public:
38 typedef std::queue<IPC::Message*> DeferredMessages; 38 typedef std::queue<IPC::Message*> DeferredMessages;
39 39
40 explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread, 40 explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread,
41 bool dead_on_arrival, 41 bool dead_on_arrival,
42 const gpu::GPUInfo& gpu_info, 42 const gpu::GPUInfo& gpu_info,
43 const DeferredMessages& deferred_messages); 43 const DeferredMessages& deferred_messages);
44 44
45 // For single-process mode. 45 // For single-process mode.
46 explicit GpuChildThread(const std::string& channel_id); 46 explicit GpuChildThread(const std::string& channel_id);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Whether the GPU thread is running in the browser process. 95 // Whether the GPU thread is running in the browser process.
96 bool in_browser_process_; 96 bool in_browser_process_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 98 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
99 }; 99 };
100 100
101 } // namespace content 101 } // namespace content
102 102
103 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 103 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698