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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 411693004: Only Record Ugliness Histogram for Compositor Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 48c6f4732d6cbd83bb327a1107a31baf7146aa6d..f179f30b1a6c5401a40a60514a94eaa88e331ee1 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -188,6 +188,12 @@ class CC_EXPORT LayerTreeImpl {
void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; }
+ void increment_frames_have_been_drawn() {
+ if (frames_have_been_drawn_)
weiliangc 2014/07/22 22:01:13 I use this check to make sure if TreeLayerImpl if
enne (OOO) 2014/07/22 22:35:38 I'm not sure what you're worried about here. If a
+ ++frames_have_been_drawn_;
+ }
+ int frames_have_been_drawn() const { return frames_have_been_drawn_; }
+
void set_ui_resource_request_queue(const UIResourceRequestQueue& queue);
const LayerImplList& RenderSurfaceLayerList() const;
@@ -330,6 +336,8 @@ class CC_EXPORT LayerTreeImpl {
bool next_activation_forces_redraw_;
+ int frames_have_been_drawn_;
weiliangc 2014/07/22 22:01:13 I'm not very happy about this variable name but no
+
ScopedPtrVector<SwapPromise> swap_promise_list_;
UIResourceRequestQueue ui_resource_request_queue_;
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698