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

Unified Diff: cc/trees/layer_tree_host.h

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/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 9cdc06c38420612cfa00e6914e950e0e73d836f5..41929836552c3c4b06702db90535b713df411ea7 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -336,6 +336,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
// Call this function when you expect there to be a swap buffer.
// See swap_promise.h for how to use SwapPromise.
void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise);
+ void QueueForcedRedrawSwapPromise(std::unique_ptr<SwapPromise> swap_promise);
void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
@@ -510,6 +511,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
void CalculateLCDTextMetricsCallback(Layer* layer);
void NotifySwapPromiseMonitorsOfSetNeedsCommit();
+ void NotifySwapPromiseMonitorsOfSetNeedsForcedRedraw();
void SetPropertyTreesNeedRebuild();
@@ -596,6 +598,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
std::unique_ptr<ClientPictureCache> client_picture_cache_;
std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_;
+ std::vector<std::unique_ptr<SwapPromise>> forced_redraw_swap_promises_;
std::set<SwapPromiseMonitor*> swap_promise_monitor_;
PropertyTrees property_trees_;

Powered by Google App Engine
This is Rietveld 408576698