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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: remove ExternalBFS::OnDidFinishFrame and related ack tracking. Created 3 years, 7 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 1932
1933 impl_thread_phase_ = ImplThreadPhase::INSIDE_IMPL_FRAME; 1933 impl_thread_phase_ = ImplThreadPhase::INSIDE_IMPL_FRAME;
1934 } 1934 }
1935 1935
1936 void LayerTreeHostImpl::DidFinishImplFrame() { 1936 void LayerTreeHostImpl::DidFinishImplFrame() {
1937 impl_thread_phase_ = ImplThreadPhase::IDLE; 1937 impl_thread_phase_ = ImplThreadPhase::IDLE;
1938 current_begin_frame_tracker_.Finish(); 1938 current_begin_frame_tracker_.Finish();
1939 decoded_image_tracker_.NotifyFrameFinished(); 1939 decoded_image_tracker_.NotifyFrameFinished();
1940 } 1940 }
1941 1941
1942 void LayerTreeHostImpl::BeginFrameDidNotProduceFrame(const BeginFrameAck& ack) {
1943 compositor_frame_sink_->BeginFrameDidNotProduceFrame(ack);
sunnyps 2017/05/22 07:17:12 nit: Check if compositor_frame_sink_ is non-null b
Eric Seckler 2017/05/22 11:29:58 Done.
1944 }
1945
1942 void LayerTreeHostImpl::UpdateViewportContainerSizes() { 1946 void LayerTreeHostImpl::UpdateViewportContainerSizes() {
1943 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer(); 1947 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer();
1944 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer(); 1948 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer();
1945 1949
1946 if (!inner_container) 1950 if (!inner_container)
1947 return; 1951 return;
1948 1952
1949 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer()); 1953 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer());
1950 1954
1951 float top_controls_layout_height = 1955 float top_controls_layout_height =
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
4342 4346
4343 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { 4347 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) {
4344 if (!element_id) 4348 if (!element_id)
4345 return; 4349 return;
4346 if (ScrollbarAnimationController* animation_controller = 4350 if (ScrollbarAnimationController* animation_controller =
4347 ScrollbarAnimationControllerForElementId(element_id)) 4351 ScrollbarAnimationControllerForElementId(element_id))
4348 animation_controller->DidScrollUpdate(); 4352 animation_controller->DidScrollUpdate();
4349 } 4353 }
4350 4354
4351 } // namespace cc 4355 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698