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

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

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years 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
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_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 void NotifyInputThrottledUntilCommit(); 142 void NotifyInputThrottledUntilCommit();
143 143
144 void Composite(base::TimeTicks frame_begin_time); 144 void Composite(base::TimeTicks frame_begin_time);
145 145
146 void FinishAllRendering(); 146 void FinishAllRendering();
147 147
148 void SetDeferCommits(bool defer_commits); 148 void SetDeferCommits(bool defer_commits);
149 149
150 // Test only hook
151 virtual void DidDeferCommit();
152
153 int source_frame_number() const { return source_frame_number_; } 150 int source_frame_number() const { return source_frame_number_; }
154 151
155 void SetNeedsDisplayOnAllLayers(); 152 void SetNeedsDisplayOnAllLayers();
156 153
157 void CollectRenderingStats(RenderingStats* stats) const; 154 void CollectRenderingStats(RenderingStats* stats) const;
158 155
159 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { 156 RenderingStatsInstrumentation* rendering_stats_instrumentation() const {
160 return rendering_stats_instrumentation_.get(); 157 return rendering_stats_instrumentation_.get();
161 } 158 }
162 159
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 474
478 uint32_t surface_id_namespace_; 475 uint32_t surface_id_namespace_;
479 uint32_t next_surface_sequence_; 476 uint32_t next_surface_sequence_;
480 477
481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 478 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
482 }; 479 };
483 480
484 } // namespace cc 481 } // namespace cc
485 482
486 #endif // CC_TREES_LAYER_TREE_HOST_H_ 483 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698