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

Unified Diff: cc/scheduler/compositor_timing_history.h

Issue 2156933003: cc: Add SwapAck watchdog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to 8 seconds Created 4 years, 4 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/proto/layer_tree_settings.proto ('k') | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/compositor_timing_history.h
diff --git a/cc/scheduler/compositor_timing_history.h b/cc/scheduler/compositor_timing_history.h
index 0366a053f86237413ec9063aa051c73af0b62cdb..04b52fc5bb926de3a73254eb4333393e7ee561d7 100644
--- a/cc/scheduler/compositor_timing_history.h
+++ b/cc/scheduler/compositor_timing_history.h
@@ -31,6 +31,7 @@ class CC_EXPORT CompositorTimingHistory {
CompositorTimingHistory(
bool using_synchronous_renderer_compositor,
+ bool enable_swap_ack_watchdog,
UMACategory uma_category,
RenderingStatsInstrumentation* rendering_stats_instrumentation);
virtual ~CompositorTimingHistory();
@@ -117,6 +118,10 @@ class CC_EXPORT CompositorTimingHistory {
base::TimeTicks draw_start_time_;
base::TimeTicks swap_start_time_;
+ // Watchdog timers.
+ bool swap_ack_watchdog_enabled_;
+ int swap_ack_watchdog_begin_impl_frame_count_;
+
std::unique_ptr<UMAReporter> uma_reporter_;
RenderingStatsInstrumentation* rendering_stats_instrumentation_;
« no previous file with comments | « cc/proto/layer_tree_settings.proto ('k') | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698