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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 23495022: CC: Add a scheduled action for ManageTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to AsValue Created 7 years, 3 months 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_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 488cc3688692a4fb8cdc4e3c398e6149422bc7b6..ce1b9a83702127167f4ed26f3a85f8fca567faa3 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;
@@ -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 WillModifyTilePriorities();
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_;
reveman 2013/09/11 15:27:45 why do we still need this state here? isn't it eno
epennerAtGoogle 2013/09/11 18:43:00 We still call ManageTiles explicitly in a few plac
// The optional delegate for the root layer scroll offset.
LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;

Powered by Google App Engine
This is Rietveld 408576698