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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapPage.cpp

Issue 1550563002: Blink Platform: Remove time functions from Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merrrge agaaain. Created 4 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/platform/heap/HeapPage.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
index 338b6828fcea0bcbf84a4acb2cf6be99a8f0f4a0..161dbccbc5f26495ad4a179afb3ae2d95271b0fe 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
@@ -46,6 +46,7 @@
#include "public/platform/WebProcessMemoryDump.h"
#include "wtf/Assertions.h"
#include "wtf/ContainerAnnotations.h"
+#include "wtf/CurrentTime.h"
#include "wtf/LeakAnnotations.h"
#include "wtf/MainThread.h"
#include "wtf/PageAllocator.h"
@@ -337,7 +338,7 @@ bool BaseHeap::lazySweepWithDeadline(double deadlineSeconds)
while (m_firstUnsweptPage) {
sweepUnsweptPage();
if (pageCount % deadlineCheckInterval == 0) {
- if (deadlineSeconds <= Platform::current()->monotonicallyIncreasingTimeSeconds()) {
+ if (deadlineSeconds <= monotonicallyIncreasingTime()) {
// Deadline has come.
Heap::reportMemoryUsageForTracing();
return !m_firstUnsweptPage;
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/SafePoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698