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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct base Created 8 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 31906ffe23fd6825138234d6c2ce4015e0f07682..b2617567daaea87b02cf15c1e5eeab10e1c988d2 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -302,6 +302,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnMsgDidActivateAcceleratedCompositing)
IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse)
IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SwapCompositorFrame,
+ OnMsgSwapCompositorFrame)
#if defined(OS_POSIX) || defined(USE_AURA)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect)
@@ -1738,6 +1740,20 @@ void RenderWidgetHostImpl::OnMsgUnlockMouse() {
RejectMouseLockOrUnlockIfNecessary();
}
+void RenderWidgetHostImpl::OnMsgSwapCompositorFrame(
+ const WebKit::WebCompositorFrame& frame) {
+ if (!view_) {
+ WebKit::WebCompositorFrameAck ack;
+ SwapCompositorFrameAck(ack);
+ }
+ view_->SwapCompositorFrame(frame);
+}
+
+void RenderWidgetHostImpl::SwapCompositorFrameAck(
+ const WebKit::WebCompositorFrameAck& ack) {
+ Send(new ViewMsg_SwapCompositorFrameACK(routing_id_, ack));
+}
+
#if defined(OS_POSIX) || defined(USE_AURA)
void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
gfx::Rect* results) {

Powered by Google App Engine
This is Rietveld 408576698