| 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 488cc3688692a4fb8cdc4e3c398e6149422bc7b6..fab584f9c956c547b69d55a35dd8c92a682b516b 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -63,6 +63,7 @@ class LayerTreeHostImplClient {
|
| virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) = 0;
|
| virtual void DidInitializeVisibleTileOnImplThread() = 0;
|
| virtual void SetNeedsCommitOnImplThread() = 0;
|
| + virtual void SetNeedsManageTilesOnImplThread() = 0;
|
| virtual void PostAnimationEventsToMainThreadOnImplThread(
|
| scoped_ptr<AnimationEventsVector> events,
|
| base::Time wall_clock_time) = 0;
|
| @@ -160,7 +161,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| void UpdateBackgroundAnimateTicking(bool should_background_tick);
|
| void SetViewportDamage(gfx::Rect damage_rect);
|
|
|
| - void ManageTiles();
|
| + virtual void ManageTiles();
|
|
|
| // Returns false if problems occured preparing the frame, and we should try
|
| // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers
|
| @@ -252,7 +253,7 @@ class CC_EXPORT LayerTreeHostImpl
|
|
|
| virtual bool SwapBuffers(const FrameData& frame);
|
| void SetNeedsBeginFrame(bool enable);
|
| - void SetNeedsManageTiles() { manage_tiles_needed_ = true; }
|
| + void DidModifyTilePriorities();
|
|
|
| void Readback(void* pixels, gfx::Rect rect_in_device_viewport);
|
|
|
| @@ -425,7 +426,8 @@ class CC_EXPORT LayerTreeHostImpl
|
| return animation_registrar_->active_animation_controllers();
|
| }
|
|
|
| - bool manage_tiles_needed() const { return manage_tiles_needed_; }
|
| + bool tile_priorities_dirty() const { return tile_priorities_dirty_; }
|
| + bool manage_tiles_needed() const { return tile_priorities_dirty_; }
|
|
|
| LayerTreeHostImplClient* client_;
|
| Proxy* proxy_;
|
| @@ -507,7 +509,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| bool should_bubble_scrolls_;
|
| bool wheel_scrolling_;
|
|
|
| - bool manage_tiles_needed_;
|
| + bool tile_priorities_dirty_;
|
|
|
| // The optional delegate for the root layer scroll offset.
|
| LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
|
|
|