Index: cc/trees/layer_tree_host.h |
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h |
index bb8944e1ec81e0606eb139b9546cfae8467bf53b..1568f06acaeb0bad2c97760bdc3529673fd75cc0 100644 |
--- a/cc/trees/layer_tree_host.h |
+++ b/cc/trees/layer_tree_host.h |
@@ -33,6 +33,7 @@ |
#include "cc/resources/resource_format.h" |
#include "cc/resources/scoped_ui_resource.h" |
#include "cc/surfaces/surface_sequence.h" |
+#include "cc/trees/compositor_mode.h" |
#include "cc/trees/layer_tree_host_client.h" |
#include "cc/trees/layer_tree_host_common.h" |
#include "cc/trees/layer_tree_settings.h" |
@@ -359,7 +360,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient { |
bool HasActiveAnimation(const Layer* layer) const; |
protected: |
- explicit LayerTreeHost(InitParams* params); |
+ LayerTreeHost(InitParams* params, CompositorMode mode); |
void InitializeThreaded( |
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
@@ -417,6 +418,10 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient { |
void SetPropertyTreesNeedRebuild(); |
+ const CompositorMode compositor_mode_; |
vmpstr
2015/12/07 18:50:09
Functions before variables, please.
Khushal
2015/12/07 21:49:26
Done.
|
+ bool IsSingleThreaded() const; |
+ bool IsThreaded() const; |
+ |
bool needs_full_tree_sync_; |
bool needs_meta_info_recomputation_; |