Adds a new callback as this signal is required to pass up to the application
independent of whether the compositor is generating frames
BUG=232944
Review URL: https://chromiumcodereview.appspot.com/16958012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212526 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index e1b2694..0db6cb7 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -207,6 +207,8 @@
virtual void SetMemoryPolicy(
const ManagedMemoryPolicy& policy,
bool discard_backbuffer_when_not_visible) OVERRIDE;
+ virtual void SetTreeActivationCallback(const base::Closure& callback)
+ OVERRIDE;
// Called from LayerTreeImpl.
void OnCanDrawStateChangedForTree();
@@ -533,6 +535,9 @@
bool need_check_for_completed_tile_uploads_before_draw_;
+ // Optional callback to notify of new tree activations.
+ base::Closure tree_activiation_callback_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};