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

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

Issue 541033003: Added coordinates information to InputLatency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 state->BeginArray("render_surface_layer_list"); 842 state->BeginArray("render_surface_layer_list");
843 typedef LayerIterator<LayerImpl> LayerIteratorType; 843 typedef LayerIterator<LayerImpl> LayerIteratorType;
844 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); 844 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_);
845 for (LayerIteratorType it = LayerIteratorType::Begin( 845 for (LayerIteratorType it = LayerIteratorType::Begin(
846 &render_surface_layer_list_); it != end; ++it) { 846 &render_surface_layer_list_); it != end; ++it) {
847 if (!it.represents_itself()) 847 if (!it.represents_itself())
848 continue; 848 continue;
849 TracedValue::AppendIDRef(*it, state); 849 TracedValue::AppendIDRef(*it, state);
850 } 850 }
851 state->EndArray(); 851 state->EndArray();
852
853 state->BeginArray("traced_input_latency_ids");
Sami 2014/09/04 19:10:43 swap_promise_trace_ids
cvicentiu 2014/09/05 17:19:56 Done.
854 for (size_t i = 0; i < swap_promise_list_.size(); i++)
855 state->AppendDouble(swap_promise_list_[i]->TraceId());
Sami 2014/09/04 19:10:43 indent++
cvicentiu 2014/09/05 17:19:56 Done.
856 state->EndArray();
857
852 } 858 }
853 859
854 void LayerTreeImpl::SetRootLayerScrollOffsetDelegate( 860 void LayerTreeImpl::SetRootLayerScrollOffsetDelegate(
855 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) { 861 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) {
856 if (root_layer_scroll_offset_delegate_ == root_layer_scroll_offset_delegate) 862 if (root_layer_scroll_offset_delegate_ == root_layer_scroll_offset_delegate)
857 return; 863 return;
858 864
859 if (!root_layer_scroll_offset_delegate) { 865 if (!root_layer_scroll_offset_delegate) {
860 // Make sure we remove the proxies from their layers before 866 // Make sure we remove the proxies from their layers before
861 // releasing them. 867 // releasing them.
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 1427
1422 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1428 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1423 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1429 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1424 } 1430 }
1425 1431
1426 void LayerTreeImpl::InputScrollAnimationFinished() { 1432 void LayerTreeImpl::InputScrollAnimationFinished() {
1427 layer_tree_host_impl_->ScrollEnd(); 1433 layer_tree_host_impl_->ScrollEnd();
1428 } 1434 }
1429 1435
1430 } // namespace cc 1436 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698