Title: [107845] trunk/Source/WebKit2
- Revision
- 107845
- Author
- [email protected]
- Date
- 2012-02-15 15:10:26 -0800 (Wed, 15 Feb 2012)
Log Message
Add TiledCoreAnimationDrawingArea::forceRepaint
https://bugs.webkit.org/show_bug.cgi?id=78749
<rdar://problem/10866221>
Reviewed by Sam Weinig.
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
Force a repaint and synchronize the layer tree to the UI process.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (107844 => 107845)
--- trunk/Source/WebKit2/ChangeLog 2012-02-15 23:08:25 UTC (rev 107844)
+++ trunk/Source/WebKit2/ChangeLog 2012-02-15 23:10:26 UTC (rev 107845)
@@ -1,3 +1,16 @@
+2012-02-15 Anders Carlsson <[email protected]>
+
+ Add TiledCoreAnimationDrawingArea::forceRepaint
+ https://bugs.webkit.org/show_bug.cgi?id=78749
+ <rdar://problem/10866221>
+
+ Reviewed by Sam Weinig.
+
+ * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
+ * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
+ (WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
+ Force a repaint and synchronize the layer tree to the UI process.
+
2012-02-15 Enrica Casucci <[email protected]>
Refactor ClipboardMac class to use PlatformStrategies.
Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h (107844 => 107845)
--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h 2012-02-15 23:08:25 UTC (rev 107844)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h 2012-02-15 23:10:26 UTC (rev 107845)
@@ -50,6 +50,7 @@
virtual void setNeedsDisplay(const WebCore::IntRect&) OVERRIDE;
virtual void scroll(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset) OVERRIDE;
+ virtual void forceRepaint() OVERRIDE;
virtual void setLayerTreeStateIsFrozen(bool) OVERRIDE;
virtual bool layerTreeStateIsFrozen() const OVERRIDE;
virtual void setRootCompositingLayer(WebCore::GraphicsLayer*) OVERRIDE;
Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm (107844 => 107845)
--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm 2012-02-15 23:08:25 UTC (rev 107844)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm 2012-02-15 23:10:26 UTC (rev 107845)
@@ -114,6 +114,16 @@
setRootCompositingLayer(rootCompositingLayer);
}
+void TiledCoreAnimationDrawingArea::forceRepaint()
+{
+ if (m_layerTreeStateIsFrozen)
+ return;
+
+ flushLayers();
+ [CATransaction flush];
+ [CATransaction synchronize];
+}
+
void TiledCoreAnimationDrawingArea::setLayerTreeStateIsFrozen(bool layerTreeStateIsFrozen)
{
if (m_layerTreeStateIsFrozen == layerTreeStateIsFrozen)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes