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

Side by Side Diff: cc/trees/threaded_channel.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/trees/single_thread_proxy.cc ('k') | cc/trees/threaded_channel.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_TREES_THREADED_CHANNEL_H_ 5 #ifndef CC_TREES_THREADED_CHANNEL_H_
6 #define CC_TREES_THREADED_CHANNEL_H_ 6 #define CC_TREES_THREADED_CHANNEL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 class CC_EXPORT ThreadedChannel : public ChannelMain, public ChannelImpl { 77 class CC_EXPORT ThreadedChannel : public ChannelMain, public ChannelImpl {
78 public: 78 public:
79 static scoped_ptr<ThreadedChannel> Create( 79 static scoped_ptr<ThreadedChannel> Create(
80 ProxyMain* proxy_main, 80 ProxyMain* proxy_main,
81 TaskRunnerProvider* task_runner_provider); 81 TaskRunnerProvider* task_runner_provider);
82 82
83 ~ThreadedChannel() override; 83 ~ThreadedChannel() override;
84 84
85 // ChannelMain Implementation 85 // ChannelMain Implementation
86 void SetThrottleFrameProductionOnImpl(bool throttle) override;
87 void UpdateTopControlsStateOnImpl(TopControlsState constraints, 86 void UpdateTopControlsStateOnImpl(TopControlsState constraints,
88 TopControlsState current, 87 TopControlsState current,
89 bool animate) override; 88 bool animate) override;
90 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; 89 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override;
91 void MainThreadHasStoppedFlingingOnImpl() override; 90 void MainThreadHasStoppedFlingingOnImpl() override;
92 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; 91 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override;
93 void SetDeferCommitsOnImpl(bool defer_commits) override; 92 void SetDeferCommitsOnImpl(bool defer_commits) override;
94 void SetNeedsCommitOnImpl() override; 93 void SetNeedsCommitOnImpl() override;
95 void BeginMainFrameAbortedOnImpl( 94 void BeginMainFrameAbortedOnImpl(
96 CommitEarlyOutReason reason, 95 CommitEarlyOutReason reason,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Used on the main thread to safely queue calls to ProxyImpl to be run on the 207 // Used on the main thread to safely queue calls to ProxyImpl to be run on the
209 // impl thread. 208 // impl thread.
210 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; 209 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_;
211 210
212 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); 211 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel);
213 }; 212 };
214 213
215 } // namespace cc 214 } // namespace cc
216 215
217 #endif // CC_TREES_THREADED_CHANNEL_H_ 216 #endif // CC_TREES_THREADED_CHANNEL_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698