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

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

Issue 1897123002: Remove current implementation of frame timing events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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.h ('k') | cc/trees/layer_tree_host_client.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.h" 5 #include "cc/trees/layer_tree_host.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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1274
1275 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { 1275 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() {
1276 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); 1276 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++);
1277 } 1277 }
1278 1278
1279 void LayerTreeHost::SetAuthoritativeVSyncInterval( 1279 void LayerTreeHost::SetAuthoritativeVSyncInterval(
1280 const base::TimeDelta& interval) { 1280 const base::TimeDelta& interval) {
1281 proxy_->SetAuthoritativeVSyncInterval(interval); 1281 proxy_->SetAuthoritativeVSyncInterval(interval);
1282 } 1282 }
1283 1283
1284 void LayerTreeHost::RecordFrameTimingEvents(
1285 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
1286 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) {
1287 client_->RecordFrameTimingEvents(std::move(composite_events),
1288 std::move(main_frame_events));
1289 }
1290
1291 Layer* LayerTreeHost::LayerById(int id) const { 1284 Layer* LayerTreeHost::LayerById(int id) const {
1292 LayerIdMap::const_iterator iter = layer_id_map_.find(id); 1285 LayerIdMap::const_iterator iter = layer_id_map_.find(id);
1293 return iter != layer_id_map_.end() ? iter->second : NULL; 1286 return iter != layer_id_map_.end() ? iter->second : NULL;
1294 } 1287 }
1295 1288
1296 void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) { 1289 void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) {
1297 layers_that_should_push_properties_.insert(layer); 1290 layers_that_should_push_properties_.insert(layer);
1298 } 1291 }
1299 1292
1300 void LayerTreeHost::RemoveLayerShouldPushProperties(Layer* layer) { 1293 void LayerTreeHost::RemoveLayerShouldPushProperties(Layer* layer) {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 [seq_num](Layer* layer) { 1648 [seq_num](Layer* layer) {
1656 layer->set_property_tree_sequence_number(seq_num); 1649 layer->set_property_tree_sequence_number(seq_num);
1657 }, 1650 },
1658 CallFunctionLayerType::ALL_LAYERS); 1651 CallFunctionLayerType::ALL_LAYERS);
1659 1652
1660 surface_id_namespace_ = proto.surface_id_namespace(); 1653 surface_id_namespace_ = proto.surface_id_namespace();
1661 next_surface_sequence_ = proto.next_surface_sequence(); 1654 next_surface_sequence_ = proto.next_surface_sequence();
1662 } 1655 }
1663 1656
1664 } // namespace cc 1657 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698