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

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

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 years, 5 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/pixel_test_output_surface.cc ('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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // LayerTreeHost->Proxy callback interface. 96 // LayerTreeHost->Proxy callback interface.
97 class LayerTreeHostImplClient { 97 class LayerTreeHostImplClient {
98 public: 98 public:
99 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; 99 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
100 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 100 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
101 virtual void CommitVSyncParameters(base::TimeTicks timebase, 101 virtual void CommitVSyncParameters(base::TimeTicks timebase,
102 base::TimeDelta interval) = 0; 102 base::TimeDelta interval) = 0;
103 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; 103 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0;
104 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 104 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
105 virtual void DidSwapBuffersOnImplThread() = 0;
106 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 105 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
107 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 106 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
108 virtual void NotifyReadyToActivate() = 0; 107 virtual void NotifyReadyToActivate() = 0;
109 virtual void NotifyReadyToDraw() = 0; 108 virtual void NotifyReadyToDraw() = 0;
110 // Please call these 3 functions through 109 // Please call these 3 functions through
111 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 110 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
112 // SetNeedsOneBeginImplFrame(). 111 // SetNeedsOneBeginImplFrame().
113 virtual void SetNeedsRedrawOnImplThread() = 0; 112 virtual void SetNeedsRedrawOnImplThread() = 0;
114 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 113 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
115 virtual void SetNeedsOneBeginImplFrameOnImplThread() = 0; 114 virtual void SetNeedsOneBeginImplFrameOnImplThread() = 0;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 359
361 // OutputSurfaceClient implementation. 360 // OutputSurfaceClient implementation.
362 void CommitVSyncParameters(base::TimeTicks timebase, 361 void CommitVSyncParameters(base::TimeTicks timebase,
363 base::TimeDelta interval) override; 362 base::TimeDelta interval) override;
364 void SetBeginFrameSource(BeginFrameSource* source) override; 363 void SetBeginFrameSource(BeginFrameSource* source) override;
365 void SetNeedsRedrawRect(const gfx::Rect& rect) override; 364 void SetNeedsRedrawRect(const gfx::Rect& rect) override;
366 void SetExternalTilePriorityConstraints( 365 void SetExternalTilePriorityConstraints(
367 const gfx::Rect& viewport_rect, 366 const gfx::Rect& viewport_rect,
368 const gfx::Transform& transform) override; 367 const gfx::Transform& transform) override;
369 void DidLoseOutputSurface() override; 368 void DidLoseOutputSurface() override;
370 void DidSwapBuffers() override;
371 void DidSwapBuffersComplete() override; 369 void DidSwapBuffersComplete() override;
372 void DidReceiveTextureInUseResponses( 370 void DidReceiveTextureInUseResponses(
373 const gpu::TextureInUseResponses& responses) override; 371 const gpu::TextureInUseResponses& responses) override;
374 void ReclaimResources(const CompositorFrameAck* ack) override; 372 void ReclaimResources(const CompositorFrameAck* ack) override;
375 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 373 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
376 void SetTreeActivationCallback(const base::Closure& callback) override; 374 void SetTreeActivationCallback(const base::Closure& callback) override;
377 void OnDraw(const gfx::Transform& transform, 375 void OnDraw(const gfx::Transform& transform,
378 const gfx::Rect& viewport, 376 const gfx::Rect& viewport,
379 const gfx::Rect& clip, 377 const gfx::Rect& clip,
380 bool resourceless_software_draw) override; 378 bool resourceless_software_draw) override;
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 849
852 std::unique_ptr<PendingTreeDurationHistogramTimer> 850 std::unique_ptr<PendingTreeDurationHistogramTimer>
853 pending_tree_duration_timer_; 851 pending_tree_duration_timer_;
854 852
855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
856 }; 854 };
857 855
858 } // namespace cc 856 } // namespace cc
859 857
860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698