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

Unified Diff: cc/trees/layer_tree_host.cc

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: Added tests for SetThrottleFrameProduction 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 7c00672dde4022151d25ac9776410e819569b6a1..a7b35cde5f50136df162ab67ad13b51d247960aa 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -137,7 +137,8 @@ LayerTreeHost::LayerTreeHost(
shared_bitmap_manager_(shared_bitmap_manager),
gpu_memory_buffer_manager_(gpu_memory_buffer_manager),
surface_id_namespace_(0u),
- next_surface_sequence_(1u) {
+ next_surface_sequence_(1u),
+ swap_interval_(1) {
if (settings_.accelerated_animation_enabled)
animation_registrar_ = AnimationRegistrar::Create();
rendering_stats_instrumentation_->set_record_rendering_stats(
@@ -741,6 +742,10 @@ void LayerTreeHost::SetVisible(bool visible) {
proxy_->SetVisible(visible);
}
+void LayerTreeHost::SetThrottleFrameProduction(bool throttle) {
+ proxy_->SetThrottleFrameProduction(throttle);
+}
+
void LayerTreeHost::StartPageScaleAnimation(const gfx::Vector2d& target_offset,
bool use_anchor,
float scale,
« cc/trees/layer_tree_host.h ('K') | « cc/trees/layer_tree_host.h ('k') | cc/trees/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698