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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 12371002: [cc] Mailbox Output Surface Support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/renderer/gpu/compositor_output_surface.h ('k') | content/renderer/gpu/mailbox_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index e3aec127ebca60629b27b3a3f0e3b7fea5157505..7401a3f9fe1d6dc94a7cc2739c99f95e8c23124a 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -6,6 +6,7 @@
#include "base/message_loop_proxy.h"
#include "cc/compositor_frame.h"
+#include "cc/compositor_frame_ack.h"
#include "cc/output_surface_client.h"
#include "content/common/view_messages.h"
#include "content/renderer/render_thread_impl.h"
@@ -37,7 +38,11 @@ namespace content {
IPC::ForwardingMessageFilter* CompositorOutputSurface::CreateFilter(
base::TaskRunner* target_task_runner)
{
- uint32 messages_to_filter[] = {ViewMsg_UpdateVSyncParameters::ID};
+ uint32 messages_to_filter[] = {
+ ViewMsg_UpdateVSyncParameters::ID,
+ ViewMsg_SwapCompositorFrameAck::ID
+ };
+
return new IPC::ForwardingMessageFilter(
messages_to_filter, arraysize(messages_to_filter),
target_task_runner);
@@ -97,6 +102,7 @@ void CompositorOutputSurface::OnMessageReceived(const IPC::Message& message) {
return;
IPC_BEGIN_MESSAGE_MAP(CompositorOutputSurface, message)
IPC_MESSAGE_HANDLER(ViewMsg_UpdateVSyncParameters, OnUpdateVSyncParameters);
+ IPC_MESSAGE_HANDLER(ViewMsg_SwapCompositorFrameAck, OnSwapAck);
IPC_END_MESSAGE_MAP()
}
@@ -107,6 +113,10 @@ void CompositorOutputSurface::OnUpdateVSyncParameters(
client_->OnVSyncParametersChanged(timebase, interval);
}
+void CompositorOutputSurface::OnSwapAck(const cc::CompositorFrameAck& ack) {
+ client_->OnSendFrameToParentCompositorAck(ack);
+}
+
bool CompositorOutputSurface::Send(IPC::Message* message) {
return ChildThread::current()->sync_message_filter()->Send(message);
}
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | content/renderer/gpu/mailbox_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698