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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean-ups Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; 69 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
70 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 70 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
71 virtual void CommitVSyncParameters(base::TimeTicks timebase, 71 virtual void CommitVSyncParameters(base::TimeTicks timebase,
72 base::TimeDelta interval) = 0; 72 base::TimeDelta interval) = 0;
73 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 73 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
74 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; 74 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
75 virtual void DidSwapBuffersOnImplThread() = 0; 75 virtual void DidSwapBuffersOnImplThread() = 0;
76 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 76 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
77 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 77 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
78 virtual void NotifyReadyToActivate() = 0; 78 virtual void NotifyReadyToActivate() = 0;
79 virtual void NotifyReadyToDraw() = 0;
79 // Please call these 3 functions through 80 // Please call these 3 functions through
80 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 81 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
81 // SetNeedsAnimate(). 82 // SetNeedsAnimate().
82 virtual void SetNeedsRedrawOnImplThread() = 0; 83 virtual void SetNeedsRedrawOnImplThread() = 0;
83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 84 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
84 virtual void SetNeedsAnimateOnImplThread() = 0; 85 virtual void SetNeedsAnimateOnImplThread() = 0;
85 virtual void DidInitializeVisibleTileOnImplThread() = 0; 86 virtual void DidInitializeVisibleTileOnImplThread() = 0;
86 virtual void SetNeedsCommitOnImplThread() = 0; 87 virtual void SetNeedsCommitOnImplThread() = 0;
87 virtual void SetNeedsManageTilesOnImplThread() = 0; 88 virtual void SetNeedsManageTilesOnImplThread() = 0;
88 virtual void PostAnimationEventsToMainThreadOnImplThread( 89 virtual void PostAnimationEventsToMainThreadOnImplThread(
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 // Viewport rect in view space used for tiling prioritization. 230 // Viewport rect in view space used for tiling prioritization.
230 const gfx::Rect ViewportRectForTilePriority() const; 231 const gfx::Rect ViewportRectForTilePriority() const;
231 232
232 // RendererClient implementation. 233 // RendererClient implementation.
233 void SetFullRootLayerDamage() override; 234 void SetFullRootLayerDamage() override;
234 235
235 // TileManagerClient implementation. 236 // TileManagerClient implementation.
236 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; 237 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override;
237 void NotifyReadyToActivate() override; 238 void NotifyReadyToActivate() override;
239 void NotifyReadyToDraw() override;
238 void NotifyTileStateChanged(const Tile* tile) override; 240 void NotifyTileStateChanged(const Tile* tile) override;
239 void BuildRasterQueue(RasterTilePriorityQueue* queue, 241 void BuildRasterQueue(RasterTilePriorityQueue* queue,
240 TreePriority tree_priority) override; 242 TreePriority tree_priority) override;
241 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, 243 void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
242 TreePriority tree_priority) override; 244 TreePriority tree_priority) override;
243 245
244 // ScrollbarAnimationControllerClient implementation. 246 // ScrollbarAnimationControllerClient implementation.
245 void PostDelayedScrollbarFade(const base::Closure& start_fade, 247 void PostDelayedScrollbarFade(const base::Closure& start_fade,
246 base::TimeDelta delay) override; 248 base::TimeDelta delay) override;
247 void SetNeedsScrollbarAnimationFrame() override; 249 void SetNeedsScrollbarAnimationFrame() override;
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 712 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
711 713
712 bool requires_high_res_to_draw_; 714 bool requires_high_res_to_draw_;
713 715
714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 716 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
715 }; 717 };
716 718
717 } // namespace cc 719 } // namespace cc
718 720
719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 721 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698