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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest Created 5 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual size_t MaxPartialTextureUpdates() const = 0; 102 virtual size_t MaxPartialTextureUpdates() const = 0;
103 103
104 virtual bool SupportsImplScrolling() const = 0; 104 virtual bool SupportsImplScrolling() const = 0;
105 105
106 virtual void AsValueInto(base::trace_event::TracedValue* value) const = 0; 106 virtual void AsValueInto(base::trace_event::TracedValue* value) const = 0;
107 107
108 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; 108 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0;
109 109
110 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; 110 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0;
111 111
112 virtual void SetAuthoritativeVSyncInterval(
113 const base::TimeDelta& interval) = 0;
114
112 // Testing hooks 115 // Testing hooks
113 virtual bool MainFrameWillHappenForTesting() = 0; 116 virtual bool MainFrameWillHappenForTesting() = 0;
114 117
115 BlockingTaskRunner* blocking_main_thread_task_runner() const { 118 BlockingTaskRunner* blocking_main_thread_task_runner() const {
116 return blocking_main_thread_task_runner_.get(); 119 return blocking_main_thread_task_runner_.get();
117 } 120 }
118 121
119 protected: 122 protected:
120 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 123 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
121 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 124 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 161 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
159 ~DebugScopedSetMainThreadBlocked() {} 162 ~DebugScopedSetMainThreadBlocked() {}
160 private: 163 private:
161 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 164 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
162 }; 165 };
163 #endif 166 #endif
164 167
165 } // namespace cc 168 } // namespace cc
166 169
167 #endif // CC_TREES_PROXY_H_ 170 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698