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

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

Issue 8198017: Allow FlushSyncs to short circuit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 242b7462c109a11f37cbb79524f2f513c0159257..602084ba370a89468430c1bccba5fcd9b54b2ef3 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -126,7 +126,7 @@ class GpuChannel : public IPC::Channel::Listener,
bool OnControlMessageReceived(const IPC::Message& msg);
- void HandleDeferredMessages();
+ void HandleMessage();
// Message handlers.
void OnInitialize(base::ProcessHandle renderer_process);
@@ -147,7 +147,7 @@ class GpuChannel : public IPC::Channel::Listener,
scoped_ptr<IPC::SyncChannel> channel_;
- std::queue<IPC::Message*> deferred_messages_;
+ std::deque<IPC::Message*> deferred_messages_;
// The id of the renderer who is on the other side of the channel.
int renderer_id_;
@@ -178,6 +178,7 @@ class GpuChannel : public IPC::Channel::Listener,
gpu::gles2::DisallowedFeatures disallowed_features_;
GpuWatchdog* watchdog_;
bool software_;
+ bool handle_messages_scheduled_;
ScopedRunnableMethodFactory<GpuChannel> task_factory_;
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698