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

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

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void DidSwapBuffersOnImplThread() = 0; 83 virtual void DidSwapBuffersOnImplThread() = 0;
84 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 84 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
85 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 85 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
86 virtual void NotifyReadyToActivate() = 0; 86 virtual void NotifyReadyToActivate() = 0;
87 virtual void NotifyReadyToDraw() = 0; 87 virtual void NotifyReadyToDraw() = 0;
88 // Please call these 3 functions through 88 // Please call these 3 functions through
89 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 89 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
90 // SetNeedsAnimate(). 90 // SetNeedsAnimate().
91 virtual void SetNeedsRedrawOnImplThread() = 0; 91 virtual void SetNeedsRedrawOnImplThread() = 0;
92 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 92 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
93 virtual void OutputSurfaceDidRequestDraw() = 0;
93 virtual void SetNeedsAnimateOnImplThread() = 0; 94 virtual void SetNeedsAnimateOnImplThread() = 0;
94 virtual void SetNeedsCommitOnImplThread() = 0; 95 virtual void SetNeedsCommitOnImplThread() = 0;
95 virtual void SetNeedsPrepareTilesOnImplThread() = 0; 96 virtual void SetNeedsPrepareTilesOnImplThread() = 0;
96 virtual void PostAnimationEventsToMainThreadOnImplThread( 97 virtual void PostAnimationEventsToMainThreadOnImplThread(
97 scoped_ptr<AnimationEventsVector> events) = 0; 98 scoped_ptr<AnimationEventsVector> events) = 0;
98 // Returns true if resources were deleted by this call. 99 // Returns true if resources were deleted by this call.
99 virtual bool ReduceContentsTextureMemoryOnImplThread( 100 virtual bool ReduceContentsTextureMemoryOnImplThread(
100 size_t limit_bytes, 101 size_t limit_bytes,
101 int priority_cutoff) = 0; 102 int priority_cutoff) = 0;
102 virtual bool IsInsideDraw() = 0; 103 virtual bool IsInsideDraw() = 0;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 void PostDelayedScrollbarFade(const base::Closure& start_fade, 251 void PostDelayedScrollbarFade(const base::Closure& start_fade,
251 base::TimeDelta delay) override; 252 base::TimeDelta delay) override;
252 void SetNeedsScrollbarAnimationFrame() override; 253 void SetNeedsScrollbarAnimationFrame() override;
253 254
254 // OutputSurfaceClient implementation. 255 // OutputSurfaceClient implementation.
255 void DeferredInitialize() override; 256 void DeferredInitialize() override;
256 void ReleaseGL() override; 257 void ReleaseGL() override;
257 void CommitVSyncParameters(base::TimeTicks timebase, 258 void CommitVSyncParameters(base::TimeTicks timebase,
258 base::TimeDelta interval) override; 259 base::TimeDelta interval) override;
259 void SetNeedsRedrawRect(const gfx::Rect& rect) override; 260 void SetNeedsRedrawRect(const gfx::Rect& rect) override;
261 void RequestDraw() override;
260 void SetExternalDrawConstraints( 262 void SetExternalDrawConstraints(
261 const gfx::Transform& transform, 263 const gfx::Transform& transform,
262 const gfx::Rect& viewport, 264 const gfx::Rect& viewport,
263 const gfx::Rect& clip, 265 const gfx::Rect& clip,
264 const gfx::Rect& viewport_rect_for_tile_priority, 266 const gfx::Rect& viewport_rect_for_tile_priority,
265 const gfx::Transform& transform_for_tile_priority, 267 const gfx::Transform& transform_for_tile_priority,
266 bool resourceless_software_draw) override; 268 bool resourceless_software_draw) override;
267 void DidLoseOutputSurface() override; 269 void DidLoseOutputSurface() override;
268 void DidSwapBuffers() override; 270 void DidSwapBuffers() override;
269 void DidSwapBuffersComplete() override; 271 void DidSwapBuffersComplete() override;
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 728
727 bool requires_high_res_to_draw_; 729 bool requires_high_res_to_draw_;
728 bool required_for_draw_tile_is_top_of_raster_queue_; 730 bool required_for_draw_tile_is_top_of_raster_queue_;
729 731
730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 732 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
731 }; 733 };
732 734
733 } // namespace cc 735 } // namespace cc
734 736
735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 737 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698