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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 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
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/test/begin_frame_args_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index a30f5a80b8f70c509b8478834a48077eee19aeab..7aaf62ad5b172ee393ada3c37c549d0a43372479 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -61,9 +61,8 @@ class TestSoftwareOutputDevice : public SoftwareOutputDevice {
class TestDisplayScheduler : public DisplayScheduler {
public:
- TestDisplayScheduler(BeginFrameSource* begin_frame_source,
- base::SingleThreadTaskRunner* task_runner)
- : DisplayScheduler(begin_frame_source, task_runner, 1),
+ explicit TestDisplayScheduler(base::SingleThreadTaskRunner* task_runner)
+ : DisplayScheduler(task_runner, 1),
damaged(false),
display_resized_(false),
has_new_root_surface(false),
@@ -128,7 +127,7 @@ class DisplayTest : public testing::Test {
output_surface_ = output_surface.get();
std::unique_ptr<TestDisplayScheduler> scheduler(
- new TestDisplayScheduler(begin_frame_source.get(), task_runner_.get()));
+ new TestDisplayScheduler(task_runner_.get()));
scheduler_ = scheduler.get();
display_ = base::MakeUnique<Display>(
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/test/begin_frame_args_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698