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

Side by Side Diff: cc/trees/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/single_thread_proxy.cc ('k') | cc/trees/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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void UpdateTopControlsState(TopControlsState constraints, 180 void UpdateTopControlsState(TopControlsState constraints,
181 TopControlsState current, 181 TopControlsState current,
182 bool animate) override; 182 bool animate) override;
183 183
184 // LayerTreeHostImplClient implementation 184 // LayerTreeHostImplClient implementation
185 void UpdateRendererCapabilitiesOnImplThread() override; 185 void UpdateRendererCapabilitiesOnImplThread() override;
186 void DidLoseOutputSurfaceOnImplThread() override; 186 void DidLoseOutputSurfaceOnImplThread() override;
187 void CommitVSyncParameters(base::TimeTicks timebase, 187 void CommitVSyncParameters(base::TimeTicks timebase,
188 base::TimeDelta interval) override; 188 base::TimeDelta interval) override;
189 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 189 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
190 void SetMaxSwapsPendingOnImplThread(int max) override;
191 void DidSwapBuffersOnImplThread() override; 190 void DidSwapBuffersOnImplThread() override;
192 void DidSwapBuffersCompleteOnImplThread() override; 191 void DidSwapBuffersCompleteOnImplThread() override;
193 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; 192 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override;
194 void OnCanDrawStateChanged(bool can_draw) override; 193 void OnCanDrawStateChanged(bool can_draw) override;
195 void NotifyReadyToActivate() override; 194 void NotifyReadyToActivate() override;
196 void NotifyReadyToDraw() override; 195 void NotifyReadyToDraw() override;
197 // Please call these 3 functions through 196 // Please call these 3 functions through
198 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 197 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
199 // SetNeedsAnimate(). 198 // SetNeedsAnimate().
200 void SetNeedsRedrawOnImplThread() override; 199 void SetNeedsRedrawOnImplThread() override;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 325
327 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 326 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
328 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 327 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
329 328
330 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 329 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
331 }; 330 };
332 331
333 } // namespace cc 332 } // namespace cc
334 333
335 #endif // CC_TREES_THREAD_PROXY_H_ 334 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698