Commit ca70be0f authored by Fady Samuel's avatar Fady Samuel Committed by Commit Bot

RenderWidgetHostImpl cleanup

Delete some dead code in / around RenderWidgetHostImpl::SubmitCompositorFrame.

Bug: none
Change-Id: If4666e6213946340bd0bdadefe733160a945ae0c
Reviewed-on: https://chromium-review.googlesource.com/1220481Reviewed-by: default avatarSaman Sami <samans@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590466}
parent b2e858e5
......@@ -2857,11 +2857,6 @@ void RenderWidgetHostImpl::SubmitCompositorFrame(
last_received_content_source_id_ = frame.metadata.content_source_id;
// |has_damage| is not transmitted.
frame.metadata.begin_frame_ack.has_damage = true;
last_frame_metadata_ = frame.metadata.Clone();
if (enable_surface_synchronization_) {
if (view_) {
// If Surface Synchronization is on, then |new_content_rendering_timeout_|
......
......@@ -610,10 +610,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl
render_frame_metadata_observer_client_request,
mojom::RenderFrameMetadataObserverPtr render_frame_metadata_observer);
const viz::CompositorFrameMetadata& last_frame_metadata() {
return last_frame_metadata_;
}
RenderFrameMetadataProviderImpl* render_frame_metadata_provider() {
return &render_frame_metadata_provider_;
}
......@@ -1131,18 +1127,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// we have a view. This is only used if |enable_viz_| is true.
base::OnceCallback<void(const viz::FrameSinkId&)> create_frame_sink_callback_;
viz::CompositorFrameMetadata last_frame_metadata_;
std::unique_ptr<FrameTokenMessageQueue> frame_token_message_queue_;
// If a CompositorFrame is submitted that references SharedBitmaps that don't
// exist yet, we keep it here until they are available.
struct {
viz::LocalSurfaceId local_surface_id;
viz::CompositorFrame frame;
base::Optional<viz::HitTestRegionList> hit_test_region_list;
} saved_frame_;
bool enable_surface_synchronization_ = false;
bool enable_viz_ = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment