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

Unified Diff: cc/trees/swap_promise_monitor.h

Issue 2317753002: cc: Abstract the LayerTreeHost. (Closed)
Patch Set: Rebase 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/single_thread_proxy.cc ('k') | cc/trees/swap_promise_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/swap_promise_monitor.h
diff --git a/cc/trees/swap_promise_monitor.h b/cc/trees/swap_promise_monitor.h
index d163af58df3266ccafe24694f341bcd61bf6b9e5..ce3cbcdf2a13fe265ad29ef9f6f2073dcfab1e68 100644
--- a/cc/trees/swap_promise_monitor.h
+++ b/cc/trees/swap_promise_monitor.h
@@ -9,7 +9,7 @@
namespace cc {
-class LayerTreeHost;
+class LayerTreeHostInterface;
class LayerTreeHostImpl;
// A SwapPromiseMonitor is used to monitor compositor state change that
@@ -27,7 +27,7 @@ class CC_EXPORT SwapPromiseMonitor {
// and set layer_tree_host_impl to nullptr.
// If the monitor lives on the impl thread, pass in layer_tree_host_impl
// and set layer_tree_host to nullptr.
- SwapPromiseMonitor(LayerTreeHost* layer_tree_host,
+ SwapPromiseMonitor(LayerTreeHostInterface* layer_tree_host,
LayerTreeHostImpl* layer_tree_host_impl);
virtual ~SwapPromiseMonitor();
@@ -36,7 +36,7 @@ class CC_EXPORT SwapPromiseMonitor {
virtual void OnForwardScrollUpdateToMainThreadOnImpl() = 0;
protected:
- LayerTreeHost* layer_tree_host_;
+ LayerTreeHostInterface* layer_tree_host_;
LayerTreeHostImpl* layer_tree_host_impl_;
};
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/swap_promise_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698