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

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

Issue 289903008: Merge SingleThreadProxy::CommitAndComposite into CompositeImmediately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | cc/trees/single_thread_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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void DidManageTiles() OVERRIDE {} 84 virtual void DidManageTiles() OVERRIDE {}
85 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} 85 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {}
86 86
87 // Called by the legacy path where RenderWidget does the scheduling. 87 // Called by the legacy path where RenderWidget does the scheduling.
88 void CompositeImmediately(base::TimeTicks frame_begin_time); 88 void CompositeImmediately(base::TimeTicks frame_begin_time);
89 89
90 private: 90 private:
91 SingleThreadProxy(LayerTreeHost* layer_tree_host, 91 SingleThreadProxy(LayerTreeHost* layer_tree_host,
92 LayerTreeHostSingleThreadClient* client); 92 LayerTreeHostSingleThreadClient* client);
93 93
94 bool CommitAndComposite(base::TimeTicks frame_begin_time,
95 LayerTreeHostImpl::FrameData* frame);
96 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 94 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
97 bool DoComposite(base::TimeTicks frame_begin_time, 95 bool DoComposite(base::TimeTicks frame_begin_time,
98 LayerTreeHostImpl::FrameData* frame); 96 LayerTreeHostImpl::FrameData* frame);
99 void DidSwapFrame(); 97 void DidSwapFrame();
100 98
101 bool ShouldComposite() const; 99 bool ShouldComposite() const;
102 void UpdateBackgroundAnimateTicking(); 100 void UpdateBackgroundAnimateTicking();
103 101
104 // Accessed on main thread only. 102 // Accessed on main thread only.
105 LayerTreeHost* layer_tree_host_; 103 LayerTreeHost* layer_tree_host_;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 private: 172 private:
175 DebugScopedSetImplThread impl_thread_; 173 DebugScopedSetImplThread impl_thread_;
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; 174 DebugScopedSetMainThreadBlocked main_thread_blocked_;
177 175
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
179 }; 177 };
180 178
181 } // namespace cc 179 } // namespace cc
182 180
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698