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

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

Issue 2296353002: Revert of Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 OFF_DEVICE, 91 OFF_DEVICE,
92 OFF_VIEWPORT, 92 OFF_VIEWPORT,
93 MSAA_CONTENT, 93 MSAA_CONTENT,
94 OFF_CONTENT 94 OFF_CONTENT
95 }; 95 };
96 96
97 // LayerTreeHost->Proxy callback interface. 97 // LayerTreeHost->Proxy callback interface.
98 class LayerTreeHostImplClient { 98 class LayerTreeHostImplClient {
99 public: 99 public:
100 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 100 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
101 virtual void CommitVSyncParameters(base::TimeTicks timebase,
102 base::TimeDelta interval) = 0;
101 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; 103 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0;
102 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 104 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
103 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 105 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
104 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 106 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
105 virtual void NotifyReadyToActivate() = 0; 107 virtual void NotifyReadyToActivate() = 0;
106 virtual void NotifyReadyToDraw() = 0; 108 virtual void NotifyReadyToDraw() = 0;
107 // Please call these 3 functions through 109 // Please call these 3 functions through
108 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 110 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
109 // SetNeedsOneBeginImplFrame(). 111 // SetNeedsOneBeginImplFrame().
110 virtual void SetNeedsRedrawOnImplThread() = 0; 112 virtual void SetNeedsRedrawOnImplThread() = 0;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 base::TimeDelta delay) override; 360 base::TimeDelta delay) override;
359 void SetNeedsAnimateForScrollbarAnimation() override; 361 void SetNeedsAnimateForScrollbarAnimation() override;
360 void SetNeedsRedrawForScrollbarAnimation() override; 362 void SetNeedsRedrawForScrollbarAnimation() override;
361 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; 363 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override;
362 364
363 // VideoBeginFrameSource implementation. 365 // VideoBeginFrameSource implementation.
364 void AddVideoFrameController(VideoFrameController* controller) override; 366 void AddVideoFrameController(VideoFrameController* controller) override;
365 void RemoveVideoFrameController(VideoFrameController* controller) override; 367 void RemoveVideoFrameController(VideoFrameController* controller) override;
366 368
367 // OutputSurfaceClient implementation. 369 // OutputSurfaceClient implementation.
370 void CommitVSyncParameters(base::TimeTicks timebase,
371 base::TimeDelta interval) override;
368 void SetBeginFrameSource(BeginFrameSource* source) override; 372 void SetBeginFrameSource(BeginFrameSource* source) override;
369 void SetNeedsRedrawRect(const gfx::Rect& rect) override; 373 void SetNeedsRedrawRect(const gfx::Rect& rect) override;
370 void SetExternalTilePriorityConstraints( 374 void SetExternalTilePriorityConstraints(
371 const gfx::Rect& viewport_rect, 375 const gfx::Rect& viewport_rect,
372 const gfx::Transform& transform) override; 376 const gfx::Transform& transform) override;
373 void DidLoseOutputSurface() override; 377 void DidLoseOutputSurface() override;
374 void DidSwapBuffersComplete() override; 378 void DidSwapBuffersComplete() override;
375 void DidReceiveTextureInUseResponses( 379 void DidReceiveTextureInUseResponses(
376 const gpu::TextureInUseResponses& responses) override; 380 const gpu::TextureInUseResponses& responses) override;
377 void ReclaimResources(const ReturnedResourceArray& resources) override; 381 void ReclaimResources(const ReturnedResourceArray& resources) override;
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 853
850 std::unique_ptr<PendingTreeDurationHistogramTimer> 854 std::unique_ptr<PendingTreeDurationHistogramTimer>
851 pending_tree_duration_timer_; 855 pending_tree_duration_timer_;
852 856
853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 857 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
854 }; 858 };
855 859
856 } // namespace cc 860 } // namespace cc
857 861
858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 862 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698