Title: [122744] trunk/Source/WTF
Revision
122744
Author
commit-qu...@webkit.org
Date
2012-07-16 11:40:42 -0700 (Mon, 16 Jul 2012)

Log Message

[BlackBerry] Use newer version of platform API to implement callOnMainThread
https://bugs.webkit.org/show_bug.cgi?id=91404

Patch by Adam Treat <atr...@rim.com> on 2012-07-16
Reviewed by Yong Li.

Right now we're using an outdated API that involves a virtual function call for no reason.
Use the new API that is much more direct and to the point.

* wtf/blackberry/MainThreadBlackBerry.cpp:
(WTF::scheduleDispatchFunctionsOnMainThread):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (122743 => 122744)


--- trunk/Source/WTF/ChangeLog	2012-07-16 18:28:29 UTC (rev 122743)
+++ trunk/Source/WTF/ChangeLog	2012-07-16 18:40:42 UTC (rev 122744)
@@ -1,3 +1,16 @@
+2012-07-16  Adam Treat  <atr...@rim.com>
+
+        [BlackBerry] Use newer version of platform API to implement callOnMainThread
+        https://bugs.webkit.org/show_bug.cgi?id=91404
+
+        Reviewed by Yong Li.
+
+        Right now we're using an outdated API that involves a virtual function call for no reason.
+        Use the new API that is much more direct and to the point.
+
+        * wtf/blackberry/MainThreadBlackBerry.cpp:
+        (WTF::scheduleDispatchFunctionsOnMainThread):
+
 2012-07-14  Filip Pizlo  <fpi...@apple.com>
 
         Unreviewed, build fix.

Modified: trunk/Source/WTF/wtf/blackberry/MainThreadBlackBerry.cpp (122743 => 122744)


--- trunk/Source/WTF/wtf/blackberry/MainThreadBlackBerry.cpp	2012-07-16 18:28:29 UTC (rev 122743)
+++ trunk/Source/WTF/wtf/blackberry/MainThreadBlackBerry.cpp	2012-07-16 18:40:42 UTC (rev 122744)
@@ -19,7 +19,8 @@
 #include "config.h"
 #include "MainThread.h"
 
-#include <BlackBerryPlatformClient.h>
+#include <BlackBerryPlatformExecutableMessage.h>
+#include <BlackBerryPlatformMessageClient.h>
 
 namespace WTF {
 
@@ -29,7 +30,7 @@
 
 void scheduleDispatchFunctionsOnMainThread()
 {
-    BlackBerry::Platform::Client::get()->scheduleCallOnMainThread(dispatchFunctionsFromMainThread);
+    BlackBerry::Platform::webKitThreadMessageClient()->dispatchMessage(BlackBerry::Platform::createFunctionCallMessage(dispatchFunctionsFromMainThread));
 }
 
 } // namespace WTF
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to