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

Unified Diff: content/gpu/in_process_gpu_thread.h

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
Index: content/gpu/in_process_gpu_thread.h
diff --git a/content/gpu/in_process_gpu_thread.h b/content/gpu/in_process_gpu_thread.h
index 37167303fd128d3d4fc96d436eb29395040770f0..9e5052d2798c822403fb35c7f36a10b9bc8a123e 100644
--- a/content/gpu/in_process_gpu_thread.h
+++ b/content/gpu/in_process_gpu_thread.h
@@ -9,6 +9,10 @@
#include "content/common/content_export.h"
#include "content/common/in_process_child_thread_params.h"
+namespace gpu {
+class SyncPointManager;
+}
+
namespace content {
class GpuMemoryBufferFactory;
@@ -18,7 +22,8 @@ class GpuProcess;
// with --in-process-gpu or --single-process.
class InProcessGpuThread : public base::Thread {
public:
- InProcessGpuThread(const InProcessChildThreadParams& params);
+ InProcessGpuThread(const InProcessChildThreadParams& params,
+ gpu::SyncPointManager* sync_point_manager_override);
~InProcessGpuThread() override;
protected:
@@ -31,6 +36,9 @@ class InProcessGpuThread : public base::Thread {
// Deleted in CleanUp() on the gpu thread, so don't use smart pointers.
GpuProcess* gpu_process_;
+ // Non-owning.
+ gpu::SyncPointManager* sync_point_manager_override_;
+
scoped_ptr<GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
DISALLOW_COPY_AND_ASSIGN(InProcessGpuThread);

Powered by Google App Engine
This is Rietveld 408576698