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

Unified Diff: content/gpu/gpu_child_thread.h

Issue 1210703002: content: Make sure all CreateGpuMemoryBuffer messages are handled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid use of g_thread_safe_sender Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_channel_manager_unittest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index 70a6bb8c13a5014591263eaa09f3c5ca2442d6d6..3993e51e627f8a3bea7688143efb9b4d66657719 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -27,6 +27,7 @@ class TargetServices;
}
namespace content {
+class GpuMemoryBufferFactory;
class GpuWatchdogThread;
// The main thread of the GPU child process. There will only ever be one of
@@ -37,10 +38,11 @@ class GpuChildThread : public ChildThreadImpl {
public:
typedef std::queue<IPC::Message*> DeferredMessages;
- explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread,
- bool dead_on_arrival,
- const gpu::GPUInfo& gpu_info,
- const DeferredMessages& deferred_messages);
+ GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread,
+ bool dead_on_arrival,
+ const gpu::GPUInfo& gpu_info,
+ const DeferredMessages& deferred_messages,
+ GpuMemoryBufferFactory* gpu_memory_buffer_factory);
explicit GpuChildThread(const InProcessChildThreadParams& params);
@@ -94,6 +96,9 @@ class GpuChildThread : public ChildThreadImpl {
// Whether the GPU thread is running in the browser process.
bool in_browser_process_;
+ // The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
+ GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
};
« no previous file with comments | « content/common/gpu/gpu_channel_manager_unittest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698