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

Unified Diff: cc/output/swap_promise.h

Issue 1292773003: Queue latency info swap promises in a separate already-active queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compilation Created 5 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 | « no previous file | cc/trees/latency_info_swap_promise_monitor.cc » ('j') | cc/trees/layer_tree_host_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/swap_promise.h
diff --git a/cc/output/swap_promise.h b/cc/output/swap_promise.h
index cf0b88de9ebc5817a4121a79e27b436ebea03086..ca6cd2026c4462d0d7fb6ab80dfaface9a45f182 100644
--- a/cc/output/swap_promise.h
+++ b/cc/output/swap_promise.h
@@ -61,6 +61,22 @@ class CC_EXPORT SwapPromise {
// swap promise. This can be used for registering additional flow steps to
// visualize the object's path through the system.
virtual int64 TraceId() const = 0;
+
+ static std::string DidNotSwapReasonToString(DidNotSwapReason reason) {
Sami 2015/08/18 11:19:18 Is this used anywhere? nit: this could just be a
Tobias Sargeant 2015/08/18 13:39:52 It isn't. It was useful during debugging the unitt
+ switch (reason) {
+ case SWAP_FAILS:
+ return "SWAP_FAILS";
+ case COMMIT_FAILS:
+ return "COMMIT_FAILS";
+ case COMMIT_NO_UPDATE:
+ return "COMMIT_NO_UPDATE";
+ case ACTIVATION_FAILS:
+ return "ACTIVATION_FAILS";
+ default:
+ NOTREACHED();
+ return "";
+ }
+ }
};
} // namespace cc
« no previous file with comments | « no previous file | cc/trees/latency_info_swap_promise_monitor.cc » ('j') | cc/trees/layer_tree_host_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698