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

Unified Diff: cc/test/layer_tree_test.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/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index e2fc182b8d7efb9bd97a3e18d197c00704463bd1..377213bda668991cbbf74faf0afe45f541efe658 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -570,8 +570,7 @@ void LayerTreeTest::DoBeginTest() {
client_ = LayerTreeHostClientForTesting::Create(this);
scoped_ptr<FakeExternalBeginFrameSource> external_begin_frame_source;
- if (settings_.use_external_begin_frame_source &&
- settings_.throttle_frame_production) {
+ if (settings_.use_external_begin_frame_source) {
external_begin_frame_source.reset(new FakeExternalBeginFrameSource(
settings_.renderer_settings.refresh_rate));
external_begin_frame_source_ = external_begin_frame_source.get();
@@ -752,8 +751,7 @@ scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() {
output_surface->capabilities().delegated_rendering);
output_surface_ = output_surface.get();
- if (settings_.use_external_begin_frame_source &&
- settings_.throttle_frame_production) {
+ if (settings_.use_external_begin_frame_source) {
DCHECK(external_begin_frame_source_);
DCHECK(external_begin_frame_source_->is_ready());
}

Powered by Google App Engine
This is Rietveld 408576698