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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/proxy_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::DidNotProduceFrame(const BeginFrameAck& ack) {
1943 if (compositor_frame_sink_)
1944 compositor_frame_sink_->DidNotProduceFrame(ack);
1945 }
1946
1942 void LayerTreeHostImpl::UpdateViewportContainerSizes() { 1947 void LayerTreeHostImpl::UpdateViewportContainerSizes() {
1943 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer(); 1948 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer();
1944 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer(); 1949 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer();
1945 1950
1946 if (!inner_container) 1951 if (!inner_container)
1947 return; 1952 return;
1948 1953
1949 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer()); 1954 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer());
1950 1955
1951 float top_controls_layout_height = 1956 float top_controls_layout_height =
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 4353
4349 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { 4354 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) {
4350 if (!element_id) 4355 if (!element_id)
4351 return; 4356 return;
4352 if (ScrollbarAnimationController* animation_controller = 4357 if (ScrollbarAnimationController* animation_controller =
4353 ScrollbarAnimationControllerForElementId(element_id)) 4358 ScrollbarAnimationControllerForElementId(element_id))
4354 animation_controller->DidScrollUpdate(); 4359 animation_controller->DidScrollUpdate();
4355 } 4360 }
4356 4361
4357 } // namespace cc 4362 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698