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

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: Trying to remove CC_EXPORT... 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..012ad3a5c9dabee96955fdd4b2a4a7d50ee6c6f5 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_ForwardCompositorProto,
+ OnForwardCompositorProto)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -1253,6 +1255,12 @@ bool RenderWidgetHostImpl::GetScreenColorProfile(
return false;
}
+void RenderWidgetHostImpl::HandleCompositorProto(
+ const std::vector<uint8_t>& proto) {
+ DCHECK(!proto.empty());
+ Send(new ViewMsg_HandleCompositorProto(GetRoutingID(), proto));
+}
+
void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
color_profile_out_of_date_ = true;
@@ -1291,6 +1299,12 @@ void RenderWidgetHostImpl::OnSelectionBoundsChanged(
}
}
+void RenderWidgetHostImpl::OnForwardCompositorProto(
+ const std::vector<uint8_t>& proto) {
+ if (delegate_)
+ delegate_->ForwardCompositorProto(this, proto);
+}
+
void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval) {
Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval));
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698