| Index: cc/trees/layer_tree_host_impl.h
|
| diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
|
| index 6830d6d3754566a22133c52fa0590943b73b33b0..d9db4b10ec9c921d3527d3c32bdcc1abddd9e22b 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -61,6 +61,7 @@ class LayerTreeHostImplClient {
|
| virtual void OnSwapBuffersCompleteOnImplThread() = 0;
|
| virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) = 0;
|
| virtual void OnCanDrawStateChanged(bool can_draw) = 0;
|
| + virtual void NotifyReadyToActivate() = 0;
|
| virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) = 0;
|
| virtual void SetNeedsRedrawOnImplThread() = 0;
|
| virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) = 0;
|
| @@ -162,7 +163,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| void UpdateBackgroundAnimateTicking(bool should_background_tick);
|
| void SetViewportDamage(gfx::Rect damage_rect);
|
|
|
| - void ManageTiles();
|
| + // Returns false if ManageTiles was not necessary and the pending tree
|
| + // can be activated.
|
| + bool ManageTiles();
|
|
|
| // Returns false if problems occured preparing the frame, and we should try
|
| // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers
|
| @@ -248,6 +251,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| virtual void CreatePendingTree();
|
| void UpdateVisibleTiles();
|
| virtual void ActivatePendingTreeIfNeeded();
|
| + virtual void ActivatePendingTree();
|
|
|
| // Shortcuts to layers on the active tree.
|
| LayerImpl* RootLayer() const;
|
| @@ -392,7 +396,6 @@ class CC_EXPORT LayerTreeHostImpl
|
| LayerTreeHostImplClient* client,
|
| Proxy* proxy,
|
| RenderingStatsInstrumentation* rendering_stats_instrumentation);
|
| - virtual void ActivatePendingTree();
|
|
|
| // Virtual for testing.
|
| virtual void AnimateLayers(base::TimeTicks monotonic_time,
|
| @@ -460,6 +463,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| UIResourceMap ui_resource_map_;
|
|
|
| scoped_ptr<OutputSurface> output_surface_;
|
| + bool output_surface_lost_;
|
|
|
| // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
|
| // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
|
|
|