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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.cc

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 5 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 return false; 883 return false;
884 } 884 }
885 885
886 void RenderFrameDevToolsAgentHost::OnSwapCompositorFrame( 886 void RenderFrameDevToolsAgentHost::OnSwapCompositorFrame(
887 const IPC::Message& message) { 887 const IPC::Message& message) {
888 ViewHostMsg_SwapCompositorFrame::Param param; 888 ViewHostMsg_SwapCompositorFrame::Param param;
889 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param)) 889 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param))
890 return; 890 return;
891 if (page_handler_) 891 if (page_handler_)
892 page_handler_->OnSwapCompositorFrame( 892 page_handler_->OnSwapCompositorFrame(
893 std::move(std::get<1>(param).metadata)); 893 std::move(std::get<2>(param).metadata));
894 if (input_handler_) 894 if (input_handler_)
895 input_handler_->OnSwapCompositorFrame(std::get<1>(param).metadata); 895 input_handler_->OnSwapCompositorFrame(std::get<2>(param).metadata);
896 if (frame_trace_recorder_ && tracing_handler_->did_initiate_recording()) { 896 if (frame_trace_recorder_ && tracing_handler_->did_initiate_recording()) {
897 frame_trace_recorder_->OnSwapCompositorFrame( 897 frame_trace_recorder_->OnSwapCompositorFrame(
898 current_ ? current_->host() : nullptr, std::get<1>(param).metadata); 898 current_ ? current_->host() : nullptr, std::get<2>(param).metadata);
899 } 899 }
900 } 900 }
901 901
902 void RenderFrameDevToolsAgentHost::SynchronousSwapCompositorFrame( 902 void RenderFrameDevToolsAgentHost::SynchronousSwapCompositorFrame(
903 cc::CompositorFrameMetadata frame_metadata) { 903 cc::CompositorFrameMetadata frame_metadata) {
904 if (page_handler_) 904 if (page_handler_)
905 page_handler_->OnSynchronousSwapCompositorFrame(std::move(frame_metadata)); 905 page_handler_->OnSynchronousSwapCompositorFrame(std::move(frame_metadata));
906 if (input_handler_) 906 if (input_handler_)
907 input_handler_->OnSwapCompositorFrame(frame_metadata); 907 input_handler_->OnSwapCompositorFrame(frame_metadata);
908 if (frame_trace_recorder_ && tracing_handler_->did_initiate_recording()) { 908 if (frame_trace_recorder_ && tracing_handler_->did_initiate_recording()) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 RenderFrameHost* host) { 943 RenderFrameHost* host) {
944 return (current_ && current_->host() == host) || 944 return (current_ && current_->host() == host) ||
945 (pending_ && pending_->host() == host); 945 (pending_ && pending_->host() == host);
946 } 946 }
947 947
948 bool RenderFrameDevToolsAgentHost::IsChildFrame() { 948 bool RenderFrameDevToolsAgentHost::IsChildFrame() {
949 return current_ && current_->host()->GetParent(); 949 return current_ && current_->host()->GetParent();
950 } 950 }
951 951
952 } // namespace content 952 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/surface_utils.cc ('k') | content/browser/frame_host/render_widget_host_view_child_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698