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

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

Issue 1137823002: Pass collected frame timing events to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed implementing virtual function on Android html_viewer. Created 5 years, 6 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/test/layer_tree_test.cc ('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 <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/cancelable_callback.h" 14 #include "base/cancelable_callback.h"
15 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "base/timer/timer.h" 20 #include "base/timer/timer.h"
21 #include "cc/animation/animation_events.h" 21 #include "cc/animation/animation_events.h"
22 #include "cc/base/cc_export.h" 22 #include "cc/base/cc_export.h"
23 #include "cc/base/scoped_ptr_vector.h" 23 #include "cc/base/scoped_ptr_vector.h"
24 #include "cc/debug/frame_timing_tracker.h"
24 #include "cc/debug/micro_benchmark.h" 25 #include "cc/debug/micro_benchmark.h"
25 #include "cc/debug/micro_benchmark_controller.h" 26 #include "cc/debug/micro_benchmark_controller.h"
26 #include "cc/input/input_handler.h" 27 #include "cc/input/input_handler.h"
27 #include "cc/input/layer_selection_bound.h" 28 #include "cc/input/layer_selection_bound.h"
28 #include "cc/input/scrollbar.h" 29 #include "cc/input/scrollbar.h"
29 #include "cc/input/top_controls_state.h" 30 #include "cc/input/top_controls_state.h"
30 #include "cc/layers/layer_lists.h" 31 #include "cc/layers/layer_lists.h"
31 #include "cc/output/output_surface.h" 32 #include "cc/output/output_surface.h"
32 #include "cc/output/renderer_capabilities.h" 33 #include "cc/output/renderer_capabilities.h"
33 #include "cc/output/swap_promise.h" 34 #include "cc/output/swap_promise.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool needs_meta_info_recomputation() { 323 bool needs_meta_info_recomputation() {
323 return needs_meta_info_recomputation_; 324 return needs_meta_info_recomputation_;
324 } 325 }
325 326
326 // If this is true, only property trees will be used for main thread CDP. 327 // If this is true, only property trees will be used for main thread CDP.
327 // CDP will not be run, and verify_property_trees will be ignored. 328 // CDP will not be run, and verify_property_trees will be ignored.
328 bool using_only_property_trees() const { 329 bool using_only_property_trees() const {
329 return settings().impl_side_painting; 330 return settings().impl_side_painting;
330 } 331 }
331 332
333 void RecordFrameTimingEvents(
334 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
335 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events);
336
332 protected: 337 protected:
333 explicit LayerTreeHost(InitParams* params); 338 explicit LayerTreeHost(InitParams* params);
334 void InitializeThreaded( 339 void InitializeThreaded(
335 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 340 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
336 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 341 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
337 scoped_ptr<BeginFrameSource> external_begin_frame_source); 342 scoped_ptr<BeginFrameSource> external_begin_frame_source);
338 void InitializeSingleThreaded( 343 void InitializeSingleThreaded(
339 LayerTreeHostSingleThreadClient* single_thread_client, 344 LayerTreeHostSingleThreadClient* single_thread_client,
340 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 345 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
341 scoped_ptr<BeginFrameSource> external_begin_frame_source); 346 scoped_ptr<BeginFrameSource> external_begin_frame_source);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 489
485 uint32_t surface_id_namespace_; 490 uint32_t surface_id_namespace_;
486 uint32_t next_surface_sequence_; 491 uint32_t next_surface_sequence_;
487 492
488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 493 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
489 }; 494 };
490 495
491 } // namespace cc 496 } // namespace cc
492 497
493 #endif // CC_TREES_LAYER_TREE_HOST_H_ 498 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698