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

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

Issue 1442853005: Add IPC messages to transfer compositor protos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 5 years, 1 month 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 78491a5b7134c704300d6937f829f52906b03da3..215436153d01c3b08ccbf054c8be717e8bc7ea92 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -473,6 +473,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnImeCompositionRangeChanged)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad,
OnFirstPaintAfterLoad)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SendCompositorProto,
no sievers 2015/11/14 00:13:43 nit: it's slightly contradictory between Send/OnHa
David Trainor- moved to gerrit 2015/11/16 04:33:58 Done.
+ OnHandleCompositorProto)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -954,6 +956,12 @@ void RenderWidgetHostImpl::OnFirstPaintAfterLoad() {
}
}
+void RenderWidgetHostImpl::OnHandleCompositorProto(
+ const std::vector<char>& proto) {
+ if (delegate_)
+ delegate_->HandleCompositorProto(this, proto);
+}
+
void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) {
ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo());
}
@@ -1253,6 +1261,12 @@ bool RenderWidgetHostImpl::GetScreenColorProfile(
return false;
}
+void RenderWidgetHostImpl::HandleCompositorProto(
no sievers 2015/11/14 00:13:43 oops, now i'm even more confused, 'Handle' overloa
David Trainor- moved to gerrit 2015/11/16 04:33:58 Yeah this is weird. I made it HandleCompositorPro
+ const std::vector<char>& proto) {
+ DCHECK(!proto.empty());
+ Send(new ViewMsg_HandleCompositorProto(GetRoutingID(), proto));
+}
+
void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
color_profile_out_of_date_ = true;

Powered by Google App Engine
This is Rietveld 408576698