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

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: More 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 // Viewport rect in view space used for tiling prioritization. 229 // Viewport rect in view space used for tiling prioritization.
229 const gfx::Rect ViewportRectForTilePriority() const; 230 const gfx::Rect ViewportRectForTilePriority() const;
230 231
231 // RendererClient implementation. 232 // RendererClient implementation.
232 void SetFullRootLayerDamage() override; 233 void SetFullRootLayerDamage() override;
233 234
234 // TileManagerClient implementation. 235 // TileManagerClient implementation.
235 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; 236 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override;
236 void NotifyReadyToActivate() override; 237 void NotifyReadyToActivate() override;
238 void NotifyReadyToDraw() override;
237 void NotifyTileStateChanged(const Tile* tile) override; 239 void NotifyTileStateChanged(const Tile* tile) override;
238 void BuildRasterQueue(RasterTilePriorityQueue* queue, 240 void BuildRasterQueue(RasterTilePriorityQueue* queue,
239 TreePriority tree_priority) override; 241 TreePriority tree_priority) override;
240 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, 242 void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
241 TreePriority tree_priority) override; 243 TreePriority tree_priority) override;
242 244
243 // ScrollbarAnimationControllerClient implementation. 245 // ScrollbarAnimationControllerClient implementation.
244 void PostDelayedScrollbarFade(const base::Closure& start_fade, 246 void PostDelayedScrollbarFade(const base::Closure& start_fade,
245 base::TimeDelta delay) override; 247 base::TimeDelta delay) override;
246 void SetNeedsScrollbarAnimationFrame() override; 248 void SetNeedsScrollbarAnimationFrame() override;
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 719 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
718 720
719 bool requires_high_res_to_draw_; 721 bool requires_high_res_to_draw_;
720 722
721 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
722 }; 724 };
723 725
724 } // namespace cc 726 } // namespace cc
725 727
726 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698