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

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

Issue 495313003: Let GpuChannel handle deferred IPC messages of SwapBuffer in batch (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 4 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') | content/common/gpu/gpu_channel.cc » ('J')
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 d115b720374a5dc9d1ba244d1a6bbe4eb0d810df..49b1078e6e1d050f054f025deff39bf32bd0c838 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -167,6 +167,12 @@ class GpuChannel : public IPC::Listener, public IPC::Sender {
// Decrement the count of unhandled IPC messages and defer preemption.
void MessageProcessed();
+ // Try to match the messages pattern for GL SwapBuffers operation in the
+ // deferred message queue starting from the current processing message.
+ // Return the number of messages that matches the given pattern, e.g.
+ // SetLatencyInfo -> AsyncFlush -> Echo sequence.
+ size_t MatchSwapBufferMessagesPattern(IPC::Message* current_message);
+
// The lifetime of objects of this class is managed by a GpuChannelManager.
// The GpuChannelManager destroy all the GpuChannels that they own when they
// are destroyed. So a raw pointer is safe.
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698