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

Side by Side Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 } 128 }
129 129
130 v8::Isolate* mainThreadIsolate() 130 v8::Isolate* mainThreadIsolate()
131 { 131 {
132 return V8PerIsolateData::mainThreadIsolate(); 132 return V8PerIsolateData::mainThreadIsolate();
133 } 133 }
134 134
135 static double currentTimeFunction() 135 static double currentTimeFunction()
136 { 136 {
137 return Platform::current()->currentTime(); 137 return Platform::current()->currentTimeSeconds();
138 } 138 }
139 139
140 static double monotonicallyIncreasingTimeFunction() 140 static double monotonicallyIncreasingTimeFunction()
141 { 141 {
142 return Platform::current()->monotonicallyIncreasingTime(); 142 return Platform::current()->monotonicallyIncreasingTimeSeconds();
143 } 143 }
144 144
145 static double systemTraceTimeFunction() 145 static double systemTraceTimeFunction()
146 { 146 {
147 return Platform::current()->systemTraceTime(); 147 return Platform::current()->systemTraceTime();
148 } 148 }
149 149
150 static void histogramEnumerationFunction(const char* name, int sample, int bound aryValue) 150 static void histogramEnumerationFunction(const char* name, int sample, int bound aryValue)
151 { 151 {
152 Platform::current()->histogramEnumeration(name, sample, boundaryValue); 152 Platform::current()->histogramEnumeration(name, sample, boundaryValue);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 ASSERT(!reloadPages); 295 ASSERT(!reloadPages);
296 Page::refreshPlugins(); 296 Page::refreshPlugins();
297 } 297 }
298 298
299 void decommitFreeableMemory() 299 void decommitFreeableMemory()
300 { 300 {
301 WTF::Partitions::decommitFreeableMemory(); 301 WTF::Partitions::decommitFreeableMemory();
302 } 302 }
303 303
304 } // namespace blink 304 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.cpp ('k') | third_party/WebKit/Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698