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

Unified Diff: content/common/gpu/client/gpu_channel_host.h

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/client/gpu_channel_host.h
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h
index d20d5222bfa52535ad051b5bd3848091bbdcbb0e..4bfe7f8d8ea099aefe513dd35bb78265a6602bef 100644
--- a/content/common/gpu/client/gpu_channel_host.h
+++ b/content/common/gpu/client/gpu_channel_host.h
@@ -161,6 +161,10 @@ class GpuChannelHost : public IPC::Sender,
// Generate a route ID guaranteed to be unique for this channel.
int32 GenerateRouteID();
+ // To be called on IO thread.
reveman 2014/10/21 20:27:58 I assume it's more appropriate to do the thread ho
alexst (slow to review) 2014/10/22 14:47:08 I was initially thinking that since the browser si
+ void WaitForPendingGpuMemoryBufferUsageToComplete(
+ const base::Closure& callback);
+
private:
friend class base::RefCountedThreadSafe<GpuChannelHost>;
GpuChannelHost(GpuChannelHostFactory* factory,
@@ -242,6 +246,16 @@ class GpuChannelHost : public IPC::Sender,
typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap;
ProxyMap proxies_;
+ void WaitForPendingGpuMemoryBufferUsageToCompleteOnMain(uint32 id);
+ void OnSignalSyncPoint(uint32 id);
+ void ProcessSignalCounterOnIO(uint32 id);
+
+ typedef base::hash_map<uint32, base::Closure> SignalTaskMap;
+ typedef base::hash_map<uint32, int> SignalCounterMap;
+ uint32 next_signal_id_;
+ SignalTaskMap signal_tasks_;
+ SignalCounterMap signal_counters_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
};
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_channel_host.cc » ('j') | content/common/gpu/client/gpu_channel_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698