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

Unified Diff: cc/trees/latency_info_swap_promise_monitor.cc

Issue 2185823005: Make RenderViewImpl::OnForceRedraw more robust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/latency_info_swap_promise_monitor.cc
diff --git a/cc/trees/latency_info_swap_promise_monitor.cc b/cc/trees/latency_info_swap_promise_monitor.cc
index 96a6d7786e12ab86136221f1b0b19dabaed234e8..eba14c504fc5ed4a1e340016e3d345a8b59ce1a3 100644
--- a/cc/trees/latency_info_swap_promise_monitor.cc
+++ b/cc/trees/latency_info_swap_promise_monitor.cc
@@ -59,6 +59,12 @@ void LatencyInfoSwapPromiseMonitor::OnSetNeedsCommitOnMain() {
}
}
+void LatencyInfoSwapPromiseMonitor::OnSetNeedsForcedRedrawOnMain() {
+ std::unique_ptr<SwapPromise> swap_promise(
+ new LatencyInfoSwapPromise(*latency_));
+ layer_tree_host_->QueueForcedRedrawSwapPromise(std::move(swap_promise));
+}
+
void LatencyInfoSwapPromiseMonitor::OnSetNeedsRedrawOnImpl() {
if (AddRenderingScheduledComponent(latency_, false /* on_main */)) {
std::unique_ptr<SwapPromise> swap_promise(

Powered by Google App Engine
This is Rietveld 408576698