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

Side by Side Diff: cc/trees/proxy_impl.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/proxy.h ('k') | cc/trees/proxy_impl.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_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/completion_event.h" 10 #include "cc/base/completion_event.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 static scoped_ptr<ProxyImpl> Create( 25 static scoped_ptr<ProxyImpl> Create(
26 ChannelImpl* channel_impl, 26 ChannelImpl* channel_impl,
27 LayerTreeHost* layer_tree_host, 27 LayerTreeHost* layer_tree_host,
28 TaskRunnerProvider* task_runner_provider, 28 TaskRunnerProvider* task_runner_provider,
29 scoped_ptr<BeginFrameSource> external_begin_frame_source); 29 scoped_ptr<BeginFrameSource> external_begin_frame_source);
30 30
31 ~ProxyImpl() override; 31 ~ProxyImpl() override;
32 32
33 // Virtual for testing. 33 // Virtual for testing.
34 virtual void SetThrottleFrameProductionOnImpl(bool throttle);
35 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, 34 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints,
36 TopControlsState current, 35 TopControlsState current,
37 bool animate); 36 bool animate);
38 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface); 37 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface);
39 virtual void MainThreadHasStoppedFlingingOnImpl(); 38 virtual void MainThreadHasStoppedFlingingOnImpl();
40 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled); 39 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled);
41 virtual void SetDeferCommitsOnImpl(bool defer_commits) const; 40 virtual void SetDeferCommitsOnImpl(bool defer_commits) const;
42 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); 41 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect);
43 virtual void SetNeedsCommitOnImpl(); 42 virtual void SetNeedsCommitOnImpl();
44 virtual void BeginMainFrameAbortedOnImpl( 43 virtual void BeginMainFrameAbortedOnImpl(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Use accessors instead of this variable directly. 166 // Use accessors instead of this variable directly.
168 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; 167 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_;
169 BlockedMainCommitOnly& blocked_main_commit(); 168 BlockedMainCommitOnly& blocked_main_commit();
170 169
171 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 170 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
172 }; 171 };
173 172
174 } // namespace cc 173 } // namespace cc
175 174
176 #endif // CC_TREES_PROXY_IMPL_H_ 175 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698