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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimCompositor.h

Issue 2746223003: Enable control over frame time in SimTests (Closed)
Patch Set: reviewchange Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/sim/SimCompositor.h
diff --git a/third_party/WebKit/Source/web/tests/sim/SimCompositor.h b/third_party/WebKit/Source/web/tests/sim/SimCompositor.h
index 914fab152f30a91a53a67e8b88ec1ae83529e63d..de5dc1ef1c9a206096c9c02245c3596c6d677c4b 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimCompositor.h
+++ b/third_party/WebKit/Source/web/tests/sim/SimCompositor.h
@@ -30,7 +30,8 @@ class SimCompositor final : public WebLayerTreeView {
// Execute the BeginMainFrame processing steps, an approximation of what
// cc::ThreadProxy::BeginMainFrame would do.
- SimDisplayItemList beginFrame();
+ // If time is not specified a 60Hz frame rate time progression is used.
+ SimDisplayItemList beginFrame(double timeDeltaInSeconds = 0.016);
bool needsBeginFrame() const { return m_needsBeginFrame; }
bool deferCommits() const { return m_deferCommits; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698