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

Unified Diff: cc/output/latency_info_swap_promise.cc

Issue 2185823005: Make RenderViewImpl::OnForceRedraw more robust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation again 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/output/latency_info_swap_promise.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/latency_info_swap_promise.cc
diff --git a/cc/output/latency_info_swap_promise.cc b/cc/output/latency_info_swap_promise.cc
index f20eb2d469b511f822137c7551b48ea471621bbc..96e08fc3436e8e3c27e4a5cccab6e06f744df4af 100644
--- a/cc/output/latency_info_swap_promise.cc
+++ b/cc/output/latency_info_swap_promise.cc
@@ -40,12 +40,14 @@ void LatencyInfoSwapPromise::DidSwap(CompositorFrameMetadata* metadata) {
metadata->latency_info.push_back(latency_);
}
-void LatencyInfoSwapPromise::DidNotSwap(DidNotSwapReason reason) {
+SwapPromise::DidNotSwapAction LatencyInfoSwapPromise::DidNotSwap(
+ DidNotSwapReason reason) {
latency_.AddLatencyNumber(DidNotSwapReasonToLatencyComponentType(reason), 0,
0);
// TODO(miletus): Turn this back on once per-event LatencyInfo tracking
// is enabled in GPU side.
// DCHECK(latency_.terminated);
+ return DidNotSwapAction::BREAK_PROMISE;
}
int64_t LatencyInfoSwapPromise::TraceId() const {
« no previous file with comments | « cc/output/latency_info_swap_promise.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698