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

Unified Diff: cc/surfaces/display_scheduler_unittest.cc

Issue 2061273002: cc: Make BackToBackBeginFrameSource a SyntheticBeginFrameSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: syntheticbeginframesource: delete-DEBUG_FRAMES Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_display_output_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_scheduler_unittest.cc
diff --git a/cc/surfaces/display_scheduler_unittest.cc b/cc/surfaces/display_scheduler_unittest.cc
index b09599ffa851ed3006f8d09a475d8a1cab8c55ec..bd857c4cc570d86a6c00820a2d44e821ad4345e0 100644
--- a/cc/surfaces/display_scheduler_unittest.cc
+++ b/cc/surfaces/display_scheduler_unittest.cc
@@ -10,6 +10,7 @@
#include "base/trace_event/trace_event.h"
#include "cc/output/begin_frame_args.h"
#include "cc/surfaces/display.h"
+#include "cc/test/fake_external_begin_frame_source.h"
#include "cc/test/scheduler_test_common.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -71,7 +72,8 @@ class TestDisplayScheduler : public DisplayScheduler {
class DisplaySchedulerTest : public testing::Test {
public:
DisplaySchedulerTest()
- : now_src_(new base::SimpleTestTickClock()),
+ : fake_begin_frame_source_(0.f, false),
+ now_src_(new base::SimpleTestTickClock()),
task_runner_(new base::NullTaskRunner),
client_(new FakeDisplaySchedulerClient),
scheduler_(new TestDisplayScheduler(client_.get(),
@@ -99,7 +101,7 @@ class DisplaySchedulerTest : public testing::Test {
FakeDisplaySchedulerClient& client() { return *client_; }
DisplayScheduler& scheduler() { return *scheduler_; }
- FakeBeginFrameSource fake_begin_frame_source_;
+ FakeExternalBeginFrameSource fake_begin_frame_source_;
std::unique_ptr<base::SimpleTestTickClock> now_src_;
scoped_refptr<base::NullTaskRunner> task_runner_;
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_display_output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698