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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes 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/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index fbc95af543538d5a937789adaa4d3c6890c7491e..01a6656655e727032ad3ebda3e0c9d0d122f7762 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -82,7 +82,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
public:
GpuChannelMessageFilter(
base::WeakPtr<GpuChannel> gpu_channel,
- scoped_refptr<gpu::SyncPointManager> sync_point_manager,
+ gpu::SyncPointManager* sync_point_manager,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
bool future_sync_points)
: preemption_state_(IDLE),
@@ -367,7 +367,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
static void InsertSyncPointOnMainThread(
base::WeakPtr<GpuChannel> gpu_channel,
- scoped_refptr<gpu::SyncPointManager> manager,
+ gpu::SyncPointManager* manager,
int32 routing_id,
bool retire,
uint32 sync_point) {
@@ -396,7 +396,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
// passed through - therefore the WeakPtr assumptions are respected.
base::WeakPtr<GpuChannel> gpu_channel_;
IPC::Sender* sender_;
- scoped_refptr<gpu::SyncPointManager> sync_point_manager_;
+ gpu::SyncPointManager* sync_point_manager_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_refptr<gpu::PreemptionFlag> preempting_flag_;
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_impl.cc ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698