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

Unified Diff: cc/trees/thread_proxy.cc

Issue 53923005: Add synthetic delay testing framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« base/debug/synthetic_delay.cc ('K') | « cc/resources/worker_pool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 4f2f488eae8e5805ee2caff3dbda557bcc8709da..90602c42882cbb30e67077ad5c3ba74707c2eb65 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -8,6 +8,7 @@
#include "base/auto_reset.h"
#include "base/bind.h"
+#include "base/debug/synthetic_delay.h"
#include "base/debug/trace_event.h"
#include "base/metrics/histogram.h"
#include "cc/debug/benchmark_instrumentation.h"
@@ -1026,6 +1027,7 @@ DrawSwapReadbackResult ThreadProxy::DrawSwapReadbackInternal(
bool forced_draw,
bool swap_requested,
bool readback_requested) {
+ SYNTHETIC_DELAY("cc.draw_and_swap");
DrawSwapReadbackResult result;
result.did_draw = false;
result.did_swap = false;
« base/debug/synthetic_delay.cc ('K') | « cc/resources/worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698