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

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

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « cc/test/fake_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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 }; 86 };
87 87
88 // LayerTreeHost->Proxy callback interface. 88 // LayerTreeHost->Proxy callback interface.
89 class LayerTreeHostImplClient { 89 class LayerTreeHostImplClient {
90 public: 90 public:
91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; 91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
92 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 92 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
93 virtual void CommitVSyncParameters(base::TimeTicks timebase, 93 virtual void CommitVSyncParameters(base::TimeTicks timebase,
94 base::TimeDelta interval) = 0; 94 base::TimeDelta interval) = 0;
95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
96 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
97 virtual void DidSwapBuffersOnImplThread() = 0; 96 virtual void DidSwapBuffersOnImplThread() = 0;
98 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 97 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
99 virtual void OnResourcelessSoftareDrawStateChanged( 98 virtual void OnResourcelessSoftareDrawStateChanged(
100 bool resourceless_draw) = 0; 99 bool resourceless_draw) = 0;
101 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 100 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
102 virtual void NotifyReadyToActivate() = 0; 101 virtual void NotifyReadyToActivate() = 0;
103 virtual void NotifyReadyToDraw() = 0; 102 virtual void NotifyReadyToDraw() = 0;
104 // Please call these 3 functions through 103 // Please call these 3 functions through
105 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 104 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
106 // SetNeedsAnimate(). 105 // SetNeedsAnimate().
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
824 823
825 scoped_ptr<Viewport> viewport_; 824 scoped_ptr<Viewport> viewport_;
826 825
827 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
828 }; 827 };
829 828
830 } // namespace cc 829 } // namespace cc
831 830
832 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_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