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

Side by Side Diff: cc/trees/single_thread_proxy.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/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void ScheduledActionInvalidateOutputSurface() override; 78 void ScheduledActionInvalidateOutputSurface() override;
79 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 79 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
80 void SendBeginMainFrameNotExpectedSoon() override; 80 void SendBeginMainFrameNotExpectedSoon() override;
81 81
82 // LayerTreeHostImplClient implementation 82 // LayerTreeHostImplClient implementation
83 void UpdateRendererCapabilitiesOnImplThread() override; 83 void UpdateRendererCapabilitiesOnImplThread() override;
84 void DidLoseOutputSurfaceOnImplThread() override; 84 void DidLoseOutputSurfaceOnImplThread() override;
85 void CommitVSyncParameters(base::TimeTicks timebase, 85 void CommitVSyncParameters(base::TimeTicks timebase,
86 base::TimeDelta interval) override; 86 base::TimeDelta interval) override;
87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
88 void SetMaxSwapsPendingOnImplThread(int max) override;
89 void DidSwapBuffersOnImplThread() override; 88 void DidSwapBuffersOnImplThread() override;
90 void DidSwapBuffersCompleteOnImplThread() override; 89 void DidSwapBuffersCompleteOnImplThread() override;
91 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; 90 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override;
92 void OnCanDrawStateChanged(bool can_draw) override; 91 void OnCanDrawStateChanged(bool can_draw) override;
93 void NotifyReadyToActivate() override; 92 void NotifyReadyToActivate() override;
94 void NotifyReadyToDraw() override; 93 void NotifyReadyToDraw() override;
95 void SetNeedsRedrawOnImplThread() override; 94 void SetNeedsRedrawOnImplThread() override;
96 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 95 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
97 void SetNeedsAnimateOnImplThread() override; 96 void SetNeedsAnimateOnImplThread() override;
98 void SetNeedsPrepareTilesOnImplThread() override; 97 void SetNeedsPrepareTilesOnImplThread() override;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 private: 237 private:
239 DebugScopedSetImplThread impl_thread_; 238 DebugScopedSetImplThread impl_thread_;
240 DebugScopedSetMainThreadBlocked main_thread_blocked_; 239 DebugScopedSetMainThreadBlocked main_thread_blocked_;
241 240
242 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
243 }; 242 };
244 243
245 } // namespace cc 244 } // namespace cc
246 245
247 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698