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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git pull of third_party/WebKit 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
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 5a62ea353a456b9092e0a27ce82c5965ad3a47a6..207f5344d7c9d6b4742dff118aa29007c619ef7e 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -8,6 +8,7 @@
#include <list>
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/basictypes.h"
@@ -48,6 +49,7 @@ class LayerTreeImpl;
class MemoryHistory;
class PageScaleAnimation;
class PaintTimeCounter;
+class PerformanceDrawTimingCounter;
class PictureLayerImpl;
class RasterWorkerPool;
class RenderPassDrawQuad;
@@ -358,6 +360,9 @@ class CC_EXPORT LayerTreeHostImpl
FrameRateCounter* fps_counter() {
return fps_counter_.get();
}
+ PerformanceDrawTimingCounter* draw_counter() {
+ return draw_counter_.get();
+ }
PaintTimeCounter* paint_time_counter() {
return paint_time_counter_.get();
}
@@ -620,10 +625,13 @@ class CC_EXPORT LayerTreeHostImpl
scoped_ptr<LayerTreeHostImplTimeSourceAdapter> time_source_client_adapter_;
scoped_ptr<FrameRateCounter> fps_counter_;
+ scoped_ptr<PerformanceDrawTimingCounter> draw_counter_;
scoped_ptr<PaintTimeCounter> paint_time_counter_;
scoped_ptr<MemoryHistory> memory_history_;
scoped_ptr<DebugRectHistory> debug_rect_history_;
+ std::vector <std::pair<int, int64_t> > uncommitted_draw_frame_ids_;
+
scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
// The maximum memory that would be used by the prioritized resource

Powered by Google App Engine
This is Rietveld 408576698