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

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

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/channel_impl.h ('k') | cc/trees/layer_tree_host.cc » ('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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <limits> 11 #include <limits>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <unordered_map> 15 #include <unordered_map>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/cancelable_callback.h" 18 #include "base/cancelable_callback.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "cc/animation/target_property.h" 23 #include "cc/animation/target_property.h"
24 #include "cc/base/cc_export.h" 24 #include "cc/base/cc_export.h"
25 #include "cc/debug/frame_timing_tracker.h"
26 #include "cc/debug/micro_benchmark.h" 25 #include "cc/debug/micro_benchmark.h"
27 #include "cc/debug/micro_benchmark_controller.h" 26 #include "cc/debug/micro_benchmark_controller.h"
28 #include "cc/input/event_listener_properties.h" 27 #include "cc/input/event_listener_properties.h"
29 #include "cc/input/input_handler.h" 28 #include "cc/input/input_handler.h"
30 #include "cc/input/layer_selection_bound.h" 29 #include "cc/input/layer_selection_bound.h"
31 #include "cc/input/scrollbar.h" 30 #include "cc/input/scrollbar.h"
32 #include "cc/input/top_controls_state.h" 31 #include "cc/input/top_controls_state.h"
33 #include "cc/layers/layer_collections.h" 32 #include "cc/layers/layer_collections.h"
34 #include "cc/layers/layer_list_iterator.h" 33 #include "cc/layers/layer_list_iterator.h"
35 #include "cc/output/output_surface.h" 34 #include "cc/output/output_surface.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 void set_surface_id_namespace(uint32_t id_namespace); 347 void set_surface_id_namespace(uint32_t id_namespace);
349 SurfaceSequence CreateSurfaceSequence(); 348 SurfaceSequence CreateSurfaceSequence();
350 349
351 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); 350 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
352 351
353 PropertyTrees* property_trees() { return &property_trees_; } 352 PropertyTrees* property_trees() { return &property_trees_; }
354 bool needs_meta_info_recomputation() { 353 bool needs_meta_info_recomputation() {
355 return needs_meta_info_recomputation_; 354 return needs_meta_info_recomputation_;
356 } 355 }
357 356
358 void RecordFrameTimingEvents(
359 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
360 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet>
361 main_frame_events);
362
363 Layer* LayerById(int id) const; 357 Layer* LayerById(int id) const;
364 358
365 void AddLayerShouldPushProperties(Layer* layer); 359 void AddLayerShouldPushProperties(Layer* layer);
366 void RemoveLayerShouldPushProperties(Layer* layer); 360 void RemoveLayerShouldPushProperties(Layer* layer);
367 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); 361 std::unordered_set<Layer*>& LayersThatShouldPushProperties();
368 bool LayerNeedsPushPropertiesForTesting(Layer* layer); 362 bool LayerNeedsPushPropertiesForTesting(Layer* layer);
369 363
370 void RegisterLayer(Layer* layer); 364 void RegisterLayer(Layer* layer);
371 void UnregisterLayer(Layer* layer); 365 void UnregisterLayer(Layer* layer);
372 // LayerTreeMutatorsClient implementation. 366 // LayerTreeMutatorsClient implementation.
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 590
597 uint32_t surface_id_namespace_; 591 uint32_t surface_id_namespace_;
598 uint32_t next_surface_sequence_; 592 uint32_t next_surface_sequence_;
599 593
600 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
601 }; 595 };
602 596
603 } // namespace cc 597 } // namespace cc
604 598
605 #endif // CC_TREES_LAYER_TREE_HOST_H_ 599 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/channel_impl.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698