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

Side by Side Diff: cc/test/test_hooks.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/scheduler_test_common.h ('k') | cc/trees/channel_main.h » ('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_TEST_HOOKS_H_ 5 #ifndef CC_TEST_TEST_HOOKS_H_
6 #define CC_TEST_TEST_HOOKS_H_ 6 #define CC_TEST_TEST_HOOKS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/animation/animation_delegate.h" 9 #include "cc/animation/animation_delegate.h"
10 #include "cc/trees/layer_tree_host.h" 10 #include "cc/trees/layer_tree_host.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void ScheduledActionSendBeginMainFrame() {} 87 virtual void ScheduledActionSendBeginMainFrame() {}
88 virtual void ScheduledActionDrawAndSwapIfPossible() {} 88 virtual void ScheduledActionDrawAndSwapIfPossible() {}
89 virtual void ScheduledActionCommit() {} 89 virtual void ScheduledActionCommit() {}
90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} 90 virtual void ScheduledActionBeginOutputSurfaceCreation() {}
91 virtual void ScheduledActionPrepareTiles() {} 91 virtual void ScheduledActionPrepareTiles() {}
92 virtual void ScheduledActionInvalidateOutputSurface() {} 92 virtual void ScheduledActionInvalidateOutputSurface() {}
93 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} 93 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {}
94 virtual void SendBeginMainFrameNotExpectedSoon() {} 94 virtual void SendBeginMainFrameNotExpectedSoon() {}
95 95
96 // Hooks for ProxyImpl 96 // Hooks for ProxyImpl
97 virtual void SetThrottleFrameProductionOnImpl(bool throttle) {}
98 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, 97 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints,
99 TopControlsState current, 98 TopControlsState current,
100 bool animate) {} 99 bool animate) {}
101 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {} 100 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) {}
102 virtual void MainThreadHasStoppedFlingingOnImpl() {} 101 virtual void MainThreadHasStoppedFlingingOnImpl() {}
103 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} 102 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) {}
104 virtual void SetDeferCommitsOnImpl(bool defer_commits) {} 103 virtual void SetDeferCommitsOnImpl(bool defer_commits) {}
105 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) {} 104 virtual void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) {}
106 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {} 105 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {}
107 virtual void SetNeedsCommitOnImpl() {} 106 virtual void SetNeedsCommitOnImpl() {}
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const proto::CompositorMessageToImpl& proto) {} 149 const proto::CompositorMessageToImpl& proto) {}
151 150
152 // Used to notify the test to destroy the Remote client LayerTreeHost on 151 // Used to notify the test to destroy the Remote client LayerTreeHost on
153 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. 152 // receiving a CompositorMessageToImpl of type CLOSE_IMPL.
154 virtual void DestroyRemoteClientHost() {} 153 virtual void DestroyRemoteClientHost() {}
155 }; 154 };
156 155
157 } // namespace cc 156 } // namespace cc
158 157
159 #endif // CC_TEST_TEST_HOOKS_H_ 158 #endif // CC_TEST_TEST_HOOKS_H_
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/trees/channel_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698