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

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

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 516 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
517 scoped_ptr<ResourcePool>* resource_pool, 517 scoped_ptr<ResourcePool>* resource_pool,
518 scoped_ptr<ResourcePool>* staging_resource_pool); 518 scoped_ptr<ResourcePool>* staging_resource_pool);
519 519
520 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } 520 bool prepare_tiles_needed() const { return tile_priorities_dirty_; }
521 521
522 FrameTimingTracker* frame_timing_tracker() { 522 FrameTimingTracker* frame_timing_tracker() {
523 return frame_timing_tracker_.get(); 523 return frame_timing_tracker_.get();
524 } 524 }
525 525
526 void RecordMainFrameTiming(const BeginFrameArgs& start_of_main_frame_args,
527 const BeginFrameArgs& current_frame_args);
528
526 protected: 529 protected:
527 LayerTreeHostImpl( 530 LayerTreeHostImpl(
528 const LayerTreeSettings& settings, 531 const LayerTreeSettings& settings,
529 LayerTreeHostImplClient* client, 532 LayerTreeHostImplClient* client,
530 Proxy* proxy, 533 Proxy* proxy,
531 RenderingStatsInstrumentation* rendering_stats_instrumentation, 534 RenderingStatsInstrumentation* rendering_stats_instrumentation,
532 SharedBitmapManager* shared_bitmap_manager, 535 SharedBitmapManager* shared_bitmap_manager,
533 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 536 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
534 int id); 537 int id);
535 538
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 bool is_likely_to_require_a_draw_; 746 bool is_likely_to_require_a_draw_;
744 747
745 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 748 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
746 749
747 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 750 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
748 }; 751 };
749 752
750 } // namespace cc 753 } // namespace cc
751 754
752 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 755 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698