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

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

Issue 2713773003: Add test for paint underinvalidation fix with animated transform overflow. (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
index 23a105cd9670e131486ec65b5917a79e8cf10f9a..43ac8d1e0ce2edc275161a822cf490f7a212fe98 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
@@ -79,14 +79,13 @@ void SimCompositor::clearSelection() {
m_hasSelection = false;
}
-SimDisplayItemList SimCompositor::beginFrame() {
+SimDisplayItemList SimCompositor::beginFrame(double dt) {
DCHECK(m_webViewImpl);
DCHECK(!m_deferCommits);
DCHECK(m_needsBeginFrame);
m_needsBeginFrame = false;
- // Always advance the time as if the compositor was running at 60fps.
- m_lastFrameTimeMonotonic = monotonicallyIncreasingTime() + 0.016;
+ m_lastFrameTimeMonotonic = monotonicallyIncreasingTime() + dt;
m_webViewImpl->beginFrame(m_lastFrameTimeMonotonic);
m_webViewImpl->updateAllLifecyclePhases();

Powered by Google App Engine
This is Rietveld 408576698