Blame 0002-Texmap-GTK-The-poster-circle-doesn-t-appear.patch

Rex Dieter 30bd45b
From 14dca2f9fc4fd1a370cdf7d0d690472e1f56da8b Mon Sep 17 00:00:00 2001
Rex Dieter 30bd45b
From: ChangSeok Oh <shivamidow@gmail.com>
Rex Dieter 30bd45b
Date: Tue, 3 Sep 2013 13:51:29 +0200
Rex Dieter 30bd45b
Subject: [PATCH 2/9] [Texmap][GTK] The poster-circle doesn't appear.
Rex Dieter 30bd45b
 https://bugs.webkit.org/show_bug.cgi?id=106672
Rex Dieter 30bd45b
Rex Dieter 30bd45b
Patch by ChangSeok Oh <shivamidow@gmail.com> on 2013-01-21
Rex Dieter 30bd45b
Reviewed by Noam Rosenthal.
Rex Dieter 30bd45b
Rex Dieter 30bd45b
Source/WebCore:
Rex Dieter 30bd45b
Rex Dieter 30bd45b
We need to call setNeedsDisplay to redraw GraphicsLayer after we set drawsContent
Rex Dieter 30bd45b
a new value for the layer. Otherwise we can't get a chance for first drawing the layer.
Rex Dieter 30bd45b
Rex Dieter 30bd45b
Test: compositing/visibility/visibility-composited-animation.html
Rex Dieter 30bd45b
Rex Dieter 30bd45b
* platform/graphics/texmap/TextureMapperLayer.cpp:
Rex Dieter 30bd45b
(WebCore::TextureMapperLayer::flushCompositingStateForThisLayerOnly):
Rex Dieter 30bd45b
Rex Dieter 30bd45b
LayoutTests:
Rex Dieter 30bd45b
Rex Dieter 30bd45b
A new pixel test is added. It tests if animated layer is drawn for the first scene.
Rex Dieter 30bd45b
Rex Dieter 30bd45b
* compositing/visibility/visibility-composited-animation-expected.png: Added.
Rex Dieter 30bd45b
* compositing/visibility/visibility-composited-animation-expected.txt: Added.
Rex Dieter 30bd45b
* compositing/visibility/visibility-composited-animation.html: Added.
Rex Dieter 30bd45b
Rex Dieter 30bd45b
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rex Dieter 30bd45b
---
Rex Dieter 30bd45b
 LayoutTests/ChangeLog                              | 13 +++++++
Rex Dieter 30bd45b
 .../visibility-composited-animation-expected.txt   |  2 +
Rex Dieter 30bd45b
 .../visibility-composited-animation.html           | 45 ++++++++++++++++++++++
Rex Dieter 30bd45b
 Source/WebCore/ChangeLog                           | 15 ++++++++
Rex Dieter 30bd45b
 .../graphics/texmap/TextureMapperLayer.cpp         |  3 ++
Rex Dieter 30bd45b
 5 files changed, 78 insertions(+)
Rex Dieter 30bd45b
 create mode 100644 LayoutTests/compositing/visibility/visibility-composited-animation-expected.txt
Rex Dieter 30bd45b
 create mode 100644 LayoutTests/compositing/visibility/visibility-composited-animation.html
Rex Dieter 30bd45b
Rex Dieter 30bd45b
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
Rex Dieter 30bd45b
index a220029..16d902c 100644
Rex Dieter 30bd45b
--- a/Source/WebCore/ChangeLog
Rex Dieter 30bd45b
+++ b/Source/WebCore/ChangeLog
Rex Dieter 30bd45b
@@ -838,6 +838,21 @@
Rex Dieter 30bd45b
         * dom/Element.h:
Rex Dieter 30bd45b
         (Element):
Rex Dieter 30bd45b
 
Rex Dieter 30bd45b
+2013-01-21  ChangSeok Oh  <shivamidow@gmail.com>
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
+        [Texmap][GTK] The poster-circle doesn't appear.
Rex Dieter 30bd45b
+        https://bugs.webkit.org/show_bug.cgi?id=106672
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
+        Reviewed by Noam Rosenthal.
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
+        We need to call setNeedsDisplay to redraw GraphicsLayer after we set drawsContent
Rex Dieter 30bd45b
+        a new value for the layer. Otherwise we can't get a chance for first drawing the layer.
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
+        Test: compositing/visibility/visibility-composited-animation.html
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
+        * platform/graphics/texmap/TextureMapperLayer.cpp:
Rex Dieter 30bd45b
+        (WebCore::TextureMapperLayer::flushCompositingStateForThisLayerOnly):
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
 2013-01-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
Rex Dieter 30bd45b
 
Rex Dieter 30bd45b
         [Qt][CSS Shaders] Make custom filter render in Wk1 mode
Rex Dieter 30bd45b
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
Rex Dieter 30bd45b
index d2a10aa..4024333 100644
Rex Dieter 30bd45b
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
Rex Dieter 30bd45b
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
Rex Dieter 30bd45b
@@ -400,6 +400,9 @@ void TextureMapperLayer::flushCompositingStateSelf(GraphicsLayerTextureMapper* g
Rex Dieter 30bd45b
 
Rex Dieter 30bd45b
     m_size = graphicsLayer->size();
Rex Dieter 30bd45b
 
Rex Dieter 30bd45b
+    if ((changeMask & DrawsContentChange) && graphicsLayer->drawsContent())
Rex Dieter 30bd45b
+        graphicsLayer->setNeedsDisplay();
Rex Dieter 30bd45b
+
Rex Dieter 30bd45b
     if (changeMask & MaskLayerChange) {
Rex Dieter 30bd45b
        if (TextureMapperLayer* layer = toTextureMapperLayer(graphicsLayer->maskLayer()))
Rex Dieter 30bd45b
            layer->m_effectTarget = this;
Rex Dieter 30bd45b
-- 
Rex Dieter 30bd45b
1.8.3.1
Rex Dieter 30bd45b