summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/PictureSet.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-11-20 13:26:23 +0000
committerSteve Block <steveblock@google.com>2009-11-20 15:34:54 +0000
commit716ed672a4274d2a4e960593e02a2cc59a96a82f (patch)
treeea10c97ec5dcf3e9b083b1f1ebf43e1b2ca53e3d /WebKit/android/jni/PictureSet.cpp
parent6f781ac6264a1eb957adc5a410ae350ddeb2a6a2 (diff)
downloadexternal_webkit-716ed672a4274d2a4e960593e02a2cc59a96a82f.zip
external_webkit-716ed672a4274d2a4e960593e02a2cc59a96a82f.tar.gz
external_webkit-716ed672a4274d2a4e960593e02a2cc59a96a82f.tar.bz2
Moves get_thread_msec from JavaScriptCore/wtf/CurrentTime to WebKit/android/Timecounter.
This function is an Android addition to JavaScriptCore::WTF, but is not used anywhere in WebCore or JavaScriptCore. Futhermore, JavaScriptCore/wtf/CurrentTime does not contain any other platform additions. It's used primarily in WebKit/android/TimeCounter, so I've moved it there. I've also updated the name to getThreadMsec to match WebKit style. Change-Id: Ia4f91efd3caaafd1fb079afe6c493aefea402582
Diffstat (limited to 'WebKit/android/jni/PictureSet.cpp')
-rw-r--r--WebKit/android/jni/PictureSet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKit/android/jni/PictureSet.cpp b/WebKit/android/jni/PictureSet.cpp
index 3a5f9f2..22f57a3 100644
--- a/WebKit/android/jni/PictureSet.cpp
+++ b/WebKit/android/jni/PictureSet.cpp
@@ -36,7 +36,7 @@
#include "SkRect.h"
#include "SkRegion.h"
#include "SkStream.h"
-#include <wtf/CurrentTime.h>
+#include "TimeCounter.h"
#define MAX_DRAW_TIME 100
#define MIN_SPLITTABLE 400
@@ -270,9 +270,9 @@ bool PictureSet::draw(SkCanvas* canvas)
}
canvas->translate(pathBounds.fLeft, pathBounds.fTop);
canvas->save();
- uint32_t startTime = WTF::get_thread_msec();
+ uint32_t startTime = getThreadMsec();
canvas->drawPicture(*working->mPicture);
- size_t elapsed = working->mElapsed = WTF::get_thread_msec() - startTime;
+ size_t elapsed = working->mElapsed = getThreadMsec() - startTime;
working->mWroteElapsed = true;
if (maxElapsed < elapsed && (pathBounds.width() >= MIN_SPLITTABLE ||
pathBounds.height() >= MIN_SPLITTABLE))