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

Unified Diff: content/renderer/render_widget.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/shell/utility/shell_content_utility_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 4cd7315e2ade000bba6091586185d14bd33d3b50..01d2d9067b01aef7b26f97be04d6651b3fc194c6 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -509,7 +509,6 @@ bool RenderWidget::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck)
IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects)
- IPC_MESSAGE_HANDLER(ViewMsg_SetFrameSinkId, OnSetFrameSinkId)
IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests,
OnWaitNextFrameForTests)
IPC_MESSAGE_HANDLER(InputMsg_RequestCompositionUpdate,
@@ -1115,6 +1114,9 @@ void RenderWidget::initializeLayerTreeView() {
compositor_->SetNeverVisible();
StartCompositor();
+ DCHECK_NE(MSG_ROUTING_NONE, routing_id_);
+ compositor_->SetFrameSinkId(
+ cc::FrameSinkId(RenderThread::Get()->GetClientId(), routing_id_));
}
void RenderWidget::WillCloseLayerTreeView() {
@@ -1509,11 +1511,6 @@ void RenderWidget::OnUpdateWindowScreenRect(
window_screen_rect_ = window_screen_rect;
}
-void RenderWidget::OnSetFrameSinkId(const cc::FrameSinkId& frame_sink_id) {
- if (compositor_)
- compositor_->SetFrameSinkId(frame_sink_id);
-}
-
void RenderWidget::OnHandleCompositorProto(const std::vector<uint8_t>& proto) {
if (compositor_)
compositor_->OnHandleCompositorProto(proto);
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/shell/utility/shell_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698