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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 1336623004: content/gpu: Simplify gpu channel message handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng's final comments Created 5 years, 3 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.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index 4de851abf20722e7cb08182f7a6b80901931639d..0fd70b46061a4f8baea196c21d76ed4b0454cd59 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -82,9 +82,6 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
// Sender overrides.
bool Send(IPC::Message* msg) override;
- uint32_t ProcessedOrderNumber();
- uint32_t UnprocessedOrderNumber();
-
void LoseAllContexts();
int GenerateRouteID();
@@ -97,7 +94,7 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; }
- GpuChannel* LookupChannel(int32 client_id);
+ GpuChannel* LookupChannel(int32 client_id) const;
gpu::SyncPointManager* sync_point_manager() {
return sync_point_manager_;
@@ -109,6 +106,14 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
return gpu_memory_buffer_factory_;
}
+ // Returns the maximum order number for unprocessed IPC messages across all
+ // channels.
+ uint32_t GetUnprocessedOrderNum() const;
+
+ // Returns the maximum order number for processed IPC messages across all
+ // channels.
+ uint32_t GetProcessedOrderNum() const;
+
protected:
virtual scoped_ptr<GpuChannel> CreateGpuChannel(
gfx::GLShareGroup* share_group,
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698