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

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

Issue 363003002: Add duration estimation data to RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LTHI forwards estimates to rendering stats. Created 6 years, 5 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // When a SwapPromiseMonitor is created on the impl thread, it calls 458 // When a SwapPromiseMonitor is created on the impl thread, it calls
459 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. 459 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl.
460 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() 460 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor()
461 // to unregister itself. 461 // to unregister itself.
462 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); 462 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor);
463 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); 463 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor);
464 464
465 void RegisterPictureLayerImpl(PictureLayerImpl* layer); 465 void RegisterPictureLayerImpl(PictureLayerImpl* layer);
466 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); 466 void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
467 467
468 void AddBeginMainFrameToCommitDurationEstimate(base::TimeDelta duration,
469 base::TimeDelta estimate);
470 void AddCommitToActivateDurationEstimate(base::TimeDelta duration,
471 base::TimeDelta estimate);
472 void AddDrawDurationEstimate(base::TimeDelta duration,
473 base::TimeDelta estimate);
474
468 protected: 475 protected:
469 LayerTreeHostImpl( 476 LayerTreeHostImpl(
470 const LayerTreeSettings& settings, 477 const LayerTreeSettings& settings,
471 LayerTreeHostImplClient* client, 478 LayerTreeHostImplClient* client,
472 Proxy* proxy, 479 Proxy* proxy,
473 RenderingStatsInstrumentation* rendering_stats_instrumentation, 480 RenderingStatsInstrumentation* rendering_stats_instrumentation,
474 SharedBitmapManager* manager, 481 SharedBitmapManager* manager,
475 int id); 482 int id);
476 483
477 gfx::SizeF ComputeInnerViewportContainerSize() const; 484 gfx::SizeF ComputeInnerViewportContainerSize() const;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 size_t transfer_buffer_memory_limit_; 703 size_t transfer_buffer_memory_limit_;
697 704
698 std::vector<PictureLayerImpl*> picture_layers_; 705 std::vector<PictureLayerImpl*> picture_layers_;
699 706
700 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 707 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
701 }; 708 };
702 709
703 } // namespace cc 710 } // namespace cc
704 711
705 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 712 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698