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

Unified Diff: cc/trees/layer_tree_host.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: nits Created 4 years 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 3b8ff9deccac7088e3aeba591d0f7bc9c2e6e301..081b15c7ce5ca4e82b6730ee0ddaa6a78ec85db1 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -10,6 +10,7 @@
#include "cc/base/cc_export.h"
#include "cc/debug/micro_benchmark.h"
#include "cc/input/browser_controls_state.h"
+#include "cc/surfaces/surface_reference_owner.h"
namespace base {
class TimeTicks;
@@ -27,7 +28,6 @@ class LayerTreeDebugState;
class LayerTreeMutator;
class LayerTreeSettings;
class CompositorFrameSink;
-class SurfaceSequenceGenerator;
class SwapPromise;
class SwapPromiseManager;
class TaskRunnerProvider;
@@ -37,7 +37,8 @@ class UIResourceManager;
// LayerTreeHostInProcess provides the implementation where the compositor
// thread components of this host run within the same process. Use
// LayerTreeHostInProcess::CreateThreaded/CreateSingleThread to get either.
-class CC_EXPORT LayerTreeHost {
+class CC_EXPORT LayerTreeHost
+ : public NON_EXPORTED_BASE(SurfaceReferenceOwner) {
public:
virtual ~LayerTreeHost() {}
@@ -187,10 +188,6 @@ class CC_EXPORT LayerTreeHost {
int id,
std::unique_ptr<base::Value> value) = 0;
- // Methods used internally in cc. These are not intended to be a part of the
- // public API for use by the embedder ----------------------
- virtual SurfaceSequenceGenerator* GetSurfaceSequenceGenerator() = 0;
-
// When the main thread informs the impl thread that it is ready to commit,
// generally it would remain blocked till the main thread state is copied to
// the pending tree. Calling this would ensure that the main thread remains

Powered by Google App Engine
This is Rietveld 408576698