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

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

Issue 221833009: cc: Move scheduling logic out of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@swapAck2Sched11
Patch Set: rebase; add comment about race Created 6 years, 8 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/scheduler_test_common.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class TopControlsManager; 56 class TopControlsManager;
57 class UIResourceBitmap; 57 class UIResourceBitmap;
58 class UIResourceRequest; 58 class UIResourceRequest;
59 struct RendererCapabilitiesImpl; 59 struct RendererCapabilitiesImpl;
60 60
61 // LayerTreeHost->Proxy callback interface. 61 // LayerTreeHost->Proxy callback interface.
62 class LayerTreeHostImplClient { 62 class LayerTreeHostImplClient {
63 public: 63 public:
64 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; 64 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
65 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 65 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
66 virtual void CommitVSyncParameters(base::TimeTicks timebase,
67 base::TimeDelta interval) = 0;
68 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
66 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; 69 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
67 virtual void DidSwapBuffersOnImplThread() = 0; 70 virtual void DidSwapBuffersOnImplThread() = 0;
68 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 71 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
69 virtual void BeginFrame(const BeginFrameArgs& args) = 0; 72 virtual void BeginFrame(const BeginFrameArgs& args) = 0;
70 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 73 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
71 virtual void NotifyReadyToActivate() = 0; 74 virtual void NotifyReadyToActivate() = 0;
72 // Please call these 2 functions through 75 // Please call these 2 functions through
73 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 76 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
74 virtual void SetNeedsRedrawOnImplThread() = 0; 77 virtual void SetNeedsRedrawOnImplThread() = 0;
75 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 78 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 220
218 // RendererClient implementation. 221 // RendererClient implementation.
219 virtual void SetFullRootLayerDamage() OVERRIDE; 222 virtual void SetFullRootLayerDamage() OVERRIDE;
220 223
221 // TileManagerClient implementation. 224 // TileManagerClient implementation.
222 virtual void NotifyReadyToActivate() OVERRIDE; 225 virtual void NotifyReadyToActivate() OVERRIDE;
223 226
224 // OutputSurfaceClient implementation. 227 // OutputSurfaceClient implementation.
225 virtual void DeferredInitialize() OVERRIDE; 228 virtual void DeferredInitialize() OVERRIDE;
226 virtual void ReleaseGL() OVERRIDE; 229 virtual void ReleaseGL() OVERRIDE;
230 virtual void CommitVSyncParameters(base::TimeTicks timebase,
231 base::TimeDelta interval) OVERRIDE;
227 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE; 232 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE;
228 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 233 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
229 virtual void SetExternalDrawConstraints( 234 virtual void SetExternalDrawConstraints(
230 const gfx::Transform& transform, 235 const gfx::Transform& transform,
231 const gfx::Rect& viewport, 236 const gfx::Rect& viewport,
232 const gfx::Rect& clip, 237 const gfx::Rect& clip,
233 bool valid_for_tile_management) OVERRIDE; 238 bool valid_for_tile_management) OVERRIDE;
234 virtual void DidLoseOutputSurface() OVERRIDE; 239 virtual void DidLoseOutputSurface() OVERRIDE;
235 virtual void DidSwapBuffers() OVERRIDE; 240 virtual void DidSwapBuffers() OVERRIDE;
236 virtual void DidSwapBuffersComplete() OVERRIDE; 241 virtual void DidSwapBuffersComplete() OVERRIDE;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 int id_; 654 int id_;
650 655
651 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 656 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
652 657
653 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 658 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
654 }; 659 };
655 660
656 } // namespace cc 661 } // namespace cc
657 662
658 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 663 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698