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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 11 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 922390fa4fd607895bc7a43664df2655b123b29a..37caab416861321639d13eab0decee49e9647bec 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -288,11 +288,13 @@ void RendererBlinkPlatformImpl::Shutdown() {
//------------------------------------------------------------------------------
double RendererBlinkPlatformImpl::currentTimeSeconds() {
- return renderer_scheduler_->CurrentTimeSeconds();
+ // TODO(alexclarke): Change the way this is plumbed through to blink.
+ return renderer_scheduler_->VirtualTimeSeconds();
}
double RendererBlinkPlatformImpl::monotonicallyIncreasingTimeSeconds() {
- return renderer_scheduler_->MonotonicallyIncreasingTimeSeconds();
+ // TODO(alexclarke): Change the way this is plumbed through to blink.
+ return renderer_scheduler_->MonotonicallyIncreasingVirtualTimeSeconds();
}
//------------------------------------------------------------------------------
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698