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

Unified Diff: Source/WebKit/chromium/tests/CCSchedulerTest.cpp

Issue 10202004: Merge 114599 - [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initializa… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 | « Source/WebKit/chromium/tests/CCSchedulerStateMachineTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/tests/CCSchedulerTest.cpp
===================================================================
--- Source/WebKit/chromium/tests/CCSchedulerTest.cpp (revision 114975)
+++ Source/WebKit/chromium/tests/CCSchedulerTest.cpp (working copy)
@@ -102,6 +102,7 @@
FakeCCSchedulerClient client;
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
// SetNeedsCommit should begin the frame.
@@ -137,6 +138,7 @@
FakeCCSchedulerClient client;
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
// SetNedsCommit should begin the frame.
@@ -206,6 +208,7 @@
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
client.setScheduler(scheduler.get());
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
scheduler->setNeedsRedraw();
@@ -231,6 +234,7 @@
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
client.setScheduler(scheduler.get());
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
client.setDrawWillHappen(false);
@@ -302,6 +306,7 @@
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
client.setScheduler(scheduler.get());
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
scheduler->setNeedsRedraw();
@@ -328,6 +333,7 @@
RefPtr<FakeCCTimeSource> timeSource = adoptRef(new FakeCCTimeSource());
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, adoptPtr(new CCFrameRateController(timeSource)));
client.setScheduler(scheduler.get());
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
client.setDrawWillHappen(false);
@@ -369,6 +375,7 @@
FakeCCFrameRateController* controllerPtr = controller.get();
OwnPtr<CCScheduler> scheduler = CCScheduler::create(&client, controller.release());
client.setScheduler(scheduler.get());
+ scheduler->setCanBeginFrame(true);
scheduler->setVisible(true);
EXPECT_EQ(0, controllerPtr->numFramesPending());
« no previous file with comments | « Source/WebKit/chromium/tests/CCSchedulerStateMachineTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698