Title: [94465] trunk/Source/WebCore
Revision
94465
Author
[email protected]
Date
2011-09-02 17:16:09 -0700 (Fri, 02 Sep 2011)

Log Message

Assert that PlatformCALayerWinInternal::displayCallback() is only called on the main thread
https://bugs.webkit.org/show_bug.cgi?id=67541

Reviewed by Simon Fraser.

No new tests, covered by existing media tests.

* platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
(PlatformCALayerWinInternal::displayCallback): Assert that is function is only called on the main thread.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (94464 => 94465)


--- trunk/Source/WebCore/ChangeLog	2011-09-03 00:07:44 UTC (rev 94464)
+++ trunk/Source/WebCore/ChangeLog	2011-09-03 00:16:09 UTC (rev 94465)
@@ -1,3 +1,15 @@
+2011-09-02  Jeff Miller  <[email protected]>
+
+        Assert that PlatformCALayerWinInternal::displayCallback() is only called on the main thread
+        https://bugs.webkit.org/show_bug.cgi?id=67541
+
+        Reviewed by Simon Fraser.
+
+        No new tests, covered by existing media tests.
+
+        * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
+        (PlatformCALayerWinInternal::displayCallback): Assert that is function is only called on the main thread.
+
 2011-09-02  Julien Chaffraix  <[email protected]>
 
         Enable RenderLayer::updateLayerPosition's cachedOffset optimization for more cases

Modified: trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.cpp (94464 => 94465)


--- trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.cpp	2011-09-03 00:07:44 UTC (rev 94464)
+++ trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.cpp	2011-09-03 00:16:09 UTC (rev 94465)
@@ -34,6 +34,7 @@
 #include "PlatformCALayer.h"
 #include "TextRun.h"
 #include <QuartzCore/CACFLayer.h>
+#include <wtf/MainThread.h>
 
 using namespace std;
 using namespace WebCore;
@@ -62,6 +63,8 @@
 
 void PlatformCALayerWinInternal::displayCallback(CACFLayerRef caLayer, CGContextRef context)
 {
+    ASSERT(isMainThread());
+    
     if (!owner() || !owner()->owner())
         return;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to