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

Side by Side Diff: cc/trees/proxy.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/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_PROXY_H_ 5 #ifndef CC_TREES_PROXY_H_
6 #define CC_TREES_PROXY_H_ 6 #define CC_TREES_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Maximum number of sub-region texture updates supported for each commit. 94 // Maximum number of sub-region texture updates supported for each commit.
95 virtual size_t MaxPartialTextureUpdates() const = 0; 95 virtual size_t MaxPartialTextureUpdates() const = 0;
96 96
97 virtual bool SupportsImplScrolling() const = 0; 97 virtual bool SupportsImplScrolling() const = 0;
98 98
99 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; 99 virtual void AsValueInto(base::debug::TracedValue* value) const = 0;
100 100
101 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; 101 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0;
102 102
103 virtual void SetAuthoritativeVSyncInterval(base::TimeDelta interval);
104
105 virtual void SetChildrenNeedBeginFrames(bool need_begin_frame);
106
103 // Testing hooks 107 // Testing hooks
104 virtual bool MainFrameWillHappenForTesting() = 0; 108 virtual bool MainFrameWillHappenForTesting() = 0;
105 109
106 BlockingTaskRunner* blocking_main_thread_task_runner() const { 110 BlockingTaskRunner* blocking_main_thread_task_runner() const {
107 return blocking_main_thread_task_runner_.get(); 111 return blocking_main_thread_task_runner_.get();
108 } 112 }
109 113
110 protected: 114 protected:
111 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 115 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
112 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 116 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 153 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
150 ~DebugScopedSetMainThreadBlocked() {} 154 ~DebugScopedSetMainThreadBlocked() {}
151 private: 155 private:
152 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 156 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
153 }; 157 };
154 #endif 158 #endif
155 159
156 } // namespace cc 160 } // namespace cc
157 161
158 #endif // CC_TREES_PROXY_H_ 162 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698