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

Side by Side Diff: cc/test/proxy_impl_for_test.h

Issue 1762823002: Remove runtime toggling of throttling frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/fake_proxy.h ('k') | cc/test/proxy_impl_for_test.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TEST_PROXY_IMPL_FOR_TEST_H_ 5 #ifndef CC_TEST_PROXY_IMPL_FOR_TEST_H_
6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_ 6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/test/test_hooks.h" 9 #include "cc/test/test_hooks.h"
10 #include "cc/trees/proxy_impl.h" 10 #include "cc/trees/proxy_impl.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 scoped_ptr<BeginFrameSource> external_begin_frame_source); 42 scoped_ptr<BeginFrameSource> external_begin_frame_source);
43 43
44 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 44 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
45 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 45 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
46 void ScheduledActionCommit() override; 46 void ScheduledActionCommit() override;
47 void ScheduledActionBeginOutputSurfaceCreation() override; 47 void ScheduledActionBeginOutputSurfaceCreation() override;
48 void ScheduledActionPrepareTiles() override; 48 void ScheduledActionPrepareTiles() override;
49 void ScheduledActionInvalidateOutputSurface() override; 49 void ScheduledActionInvalidateOutputSurface() override;
50 void SendBeginMainFrameNotExpectedSoon() override; 50 void SendBeginMainFrameNotExpectedSoon() override;
51 void DidActivateSyncTree() override; 51 void DidActivateSyncTree() override;
52 void SetThrottleFrameProductionOnImpl(bool throttle) override;
53 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; 52 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override;
54 void MainThreadHasStoppedFlingingOnImpl() override; 53 void MainThreadHasStoppedFlingingOnImpl() override;
55 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; 54 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override;
56 void UpdateTopControlsStateOnImpl(TopControlsState constraints, 55 void UpdateTopControlsStateOnImpl(TopControlsState constraints,
57 TopControlsState current, 56 TopControlsState current,
58 bool animate) override; 57 bool animate) override;
59 void SetDeferCommitsOnImpl(bool defer_commits) const override; 58 void SetDeferCommitsOnImpl(bool defer_commits) const override;
60 void BeginMainFrameAbortedOnImpl( 59 void BeginMainFrameAbortedOnImpl(
61 CommitEarlyOutReason reason, 60 CommitEarlyOutReason reason,
62 base::TimeTicks main_thread_start_time) override; 61 base::TimeTicks main_thread_start_time) override;
63 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; 62 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override;
64 void SetNeedsCommitOnImpl() override; 63 void SetNeedsCommitOnImpl() override;
65 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; 64 void FinishAllRenderingOnImpl(CompletionEvent* completion) override;
66 void SetVisibleOnImpl(bool visible) override; 65 void SetVisibleOnImpl(bool visible) override;
67 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; 66 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override;
68 void FinishGLOnImpl(CompletionEvent* completion) override; 67 void FinishGLOnImpl(CompletionEvent* completion) override;
69 void StartCommitOnImpl(CompletionEvent* completion, 68 void StartCommitOnImpl(CompletionEvent* completion,
70 LayerTreeHost* layer_tree_host, 69 LayerTreeHost* layer_tree_host,
71 base::TimeTicks main_thread_start_time, 70 base::TimeTicks main_thread_start_time,
72 bool hold_commit_for_activation) override; 71 bool hold_commit_for_activation) override;
73 72
74 TestHooks* test_hooks_; 73 TestHooks* test_hooks_;
75 }; 74 };
76 75
77 } // namespace cc 76 } // namespace cc
78 77
79 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_ 78 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/proxy_impl_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698