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

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

Issue 811523002: Added ability to dynamically toggle frame throttling in the scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A few more cleanups pointed out by Brian Created 5 years, 11 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/test/scheduler_test_common.cc ('k') | cc/trees/layer_tree_host.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_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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 void SetOverhangBitmap(const SkBitmap& bitmap); 235 void SetOverhangBitmap(const SkBitmap& bitmap);
236 236
237 PrioritizedResourceManager* contents_texture_manager() const { 237 PrioritizedResourceManager* contents_texture_manager() const {
238 return contents_texture_manager_.get(); 238 return contents_texture_manager_.get();
239 } 239 }
240 240
241 void SetVisible(bool visible); 241 void SetVisible(bool visible);
242 bool visible() const { return visible_; } 242 bool visible() const { return visible_; }
243 243
244 void SetThrottleFrameProduction(bool throttle);
245
244 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 246 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
245 bool use_anchor, 247 bool use_anchor,
246 float scale, 248 float scale,
247 base::TimeDelta duration); 249 base::TimeDelta duration);
248 250
249 void ApplyScrollAndScale(ScrollAndScaleSet* info); 251 void ApplyScrollAndScale(ScrollAndScaleSet* info);
250 void SetImplTransform(const gfx::Transform& transform); 252 void SetImplTransform(const gfx::Transform& transform);
251 253
252 // Virtual for tests. 254 // Virtual for tests.
253 virtual void StartRateLimiter(); 255 virtual void StartRateLimiter();
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 484
483 uint32_t surface_id_namespace_; 485 uint32_t surface_id_namespace_;
484 uint32_t next_surface_sequence_; 486 uint32_t next_surface_sequence_;
485 487
486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
487 }; 489 };
488 490
489 } // namespace cc 491 } // namespace cc
490 492
491 #endif // CC_TREES_LAYER_TREE_HOST_H_ 493 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698