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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2323423002: cc: Add SwapPromiseManager and SurfaceSequenceGenerator. (Closed)
Patch Set: keep LTH in Layer. Created 4 years, 3 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_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index bcb68a1823e6c8912c8f7ee5aac5d8aacd3cec92..de51dec2045d580ace3c4b183818d2f1803d00e8 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -8610,7 +8610,10 @@ class SimpleSwapPromiseMonitor : public SwapPromiseMonitor {
int* set_needs_commit_count,
int* set_needs_redraw_count,
int* forward_to_main_count)
- : SwapPromiseMonitor(layer_tree_host, layer_tree_host_impl),
+ : SwapPromiseMonitor(
+ (layer_tree_host ? layer_tree_host->GetSwapPromiseManager()
+ : nullptr),
+ layer_tree_host_impl),
set_needs_commit_count_(set_needs_commit_count),
set_needs_redraw_count_(set_needs_redraw_count),
forward_to_main_count_(forward_to_main_count) {}

Powered by Google App Engine
This is Rietveld 408576698