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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1172583003: [DRAFT] Animations: Profile hash look-ups for external mutators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implscroll
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index b491f1577b355f4d9337bf4498fef95d654e2dd5..62456e0ea9bc24edea1a2dbfddc85b5a9f067b4d 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -120,7 +120,7 @@ class CC_EXPORT LayerTreeHost : public LayerTreeMutatorsClient {
LayerTreeHostImplClient* client);
void DidLoseOutputSurface();
bool output_surface_lost() const { return output_surface_lost_; }
- void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
+ void DidCommitAndDrawFrame();
void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
bool UpdateLayers(ResourceUpdateQueue* queue);
@@ -363,6 +363,8 @@ class CC_EXPORT LayerTreeHost : public LayerTreeMutatorsClient {
bool HasAnyAnimation(const Layer* layer) const;
bool HasActiveAnimation(const Layer* layer) const;
+ void ReportAndClearStatsAfterAnimateLayers();
+
protected:
explicit LayerTreeHost(InitParams* params);
void InitializeThreaded(
@@ -519,6 +521,7 @@ class CC_EXPORT LayerTreeHost : public LayerTreeMutatorsClient {
typedef base::hash_map<int, Layer*> LayerIdMap;
LayerIdMap layer_id_map_;
+ mutable base::TimeDelta find_layer_by_id_stats_;
uint32_t surface_id_namespace_;
uint32_t next_surface_sequence_;
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698