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

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

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (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/renderer/gpu/compositor_ipc_message_filter.cc
diff --git a/content/renderer/gpu/compositor_ipc_message_filter.cc b/content/renderer/gpu/compositor_ipc_message_filter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9714f051b820487c7f6e01341d06844198704c8c
--- /dev/null
+++ b/content/renderer/gpu/compositor_ipc_message_filter.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/gpu/compositor_ipc_message_filter.h"
+
+#include "content/common/view_messages.h"
+#include "ipc/ipc_forwarding_message_filter.h"
+
+namespace content {
+
+IPC::ForwardingMessageFilter* CreateCompositorIPCMessageFilter(
+ base::TaskRunner* target_task_runner) {
+ uint32 messages_to_filter[] = {
+ ViewMsg_BeginFrame::ID,
+ ViewMsg_ReclaimCompositorResources::ID,
+ ViewMsg_SwapCompositorFrameAck::ID,
+ ViewMsg_UpdateVSyncParameters::ID
+ };
+
+ return new IPC::ForwardingMessageFilter(
+ messages_to_filter, arraysize(messages_to_filter),
+ target_task_runner);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698