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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 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
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/stub_layer_tree_host_client.h » ('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 #include "cc/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 test_hooks_->DidReceiveCompositorFrameAck(); 357 test_hooks_->DidReceiveCompositorFrameAck();
358 } 358 }
359 359
360 void DidSubmitCompositorFrame() override {} 360 void DidSubmitCompositorFrame() override {}
361 void DidLoseCompositorFrameSink() override {} 361 void DidLoseCompositorFrameSink() override {}
362 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } 362 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); }
363 void DidCompletePageScaleAnimation() override {} 363 void DidCompletePageScaleAnimation() override {}
364 void BeginMainFrameNotExpectedSoon() override { 364 void BeginMainFrameNotExpectedSoon() override {
365 test_hooks_->BeginMainFrameNotExpectedSoon(); 365 test_hooks_->BeginMainFrameNotExpectedSoon();
366 } 366 }
367 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override {}
367 368
368 bool IsForSubframe() override { return false; } 369 bool IsForSubframe() override { return false; }
369 370
370 private: 371 private:
371 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) 372 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks)
372 : test_hooks_(test_hooks) {} 373 : test_hooks_(test_hooks) {}
373 374
374 TestHooks* test_hooks_; 375 TestHooks* test_hooks_;
375 }; 376 };
376 377
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 DCHECK(task_runner_provider()->IsMainThread() || 898 DCHECK(task_runner_provider()->IsMainThread() ||
898 task_runner_provider()->IsMainThreadBlocked()); 899 task_runner_provider()->IsMainThreadBlocked());
899 return layer_tree_host_.get(); 900 return layer_tree_host_.get();
900 } 901 }
901 902
902 Proxy* LayerTreeTest::proxy() { 903 Proxy* LayerTreeTest::proxy() {
903 return layer_tree_host() ? layer_tree_host()->proxy() : NULL; 904 return layer_tree_host() ? layer_tree_host()->proxy() : NULL;
904 } 905 }
905 906
906 } // namespace cc 907 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/stub_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698