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

Unified Diff: cc/trees/latency_info_swap_promise_monitor.cc

Issue 2323423002: cc: Add SwapPromiseManager and SurfaceSequenceGenerator. (Closed)
Patch Set: tests 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
« no previous file with comments | « cc/trees/latency_info_swap_promise_monitor.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 51fd32452065061ae71b7dbbc3580efbe7d24c4e..cb0af9ee9a286440c58d85b62332d96ffae723e2 100644
--- a/cc/trees/latency_info_swap_promise_monitor.cc
+++ b/cc/trees/latency_info_swap_promise_monitor.cc
@@ -8,9 +8,9 @@
#include "base/threading/platform_thread.h"
#include "cc/output/latency_info_swap_promise.h"
-#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "cc/trees/layer_tree_impl.h"
+#include "cc/trees/swap_promise_manager.h"
namespace {
@@ -42,9 +42,9 @@ namespace cc {
LatencyInfoSwapPromiseMonitor::LatencyInfoSwapPromiseMonitor(
ui::LatencyInfo* latency,
- LayerTreeHostInterface* layer_tree_host,
+ SwapPromiseManager* swap_promise_manager,
LayerTreeHostImpl* layer_tree_host_impl)
- : SwapPromiseMonitor(layer_tree_host, layer_tree_host_impl),
+ : SwapPromiseMonitor(swap_promise_manager, layer_tree_host_impl),
latency_(latency) {}
LatencyInfoSwapPromiseMonitor::~LatencyInfoSwapPromiseMonitor() {
@@ -54,7 +54,7 @@ void LatencyInfoSwapPromiseMonitor::OnSetNeedsCommitOnMain() {
if (AddRenderingScheduledComponent(latency_, true /* on_main */)) {
std::unique_ptr<SwapPromise> swap_promise(
new LatencyInfoSwapPromise(*latency_));
- layer_tree_host_->QueueSwapPromise(std::move(swap_promise));
+ swap_promise_manager_->QueueSwapPromise(std::move(swap_promise));
}
}
« no previous file with comments | « cc/trees/latency_info_swap_promise_monitor.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698