CoordinatedGraphicsLayer::syncLayerState() should set the m_layerState.contentsOpaque...
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 May 2016 05:52:11 +0000 (05:52 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 May 2016 05:52:11 +0000 (05:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=157575

Reviewed by Darin Adler.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::syncLayerState): The contentsOpaque flag in the
layer's CoordinatedGraphicsLayerState object should also be set to the current value
of the layer. This is the only flag in the union of 9 members that's not being updated
in this method.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200813 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp

index 2e54458..7665043 100644 (file)
@@ -1,5 +1,18 @@
 2016-05-12  Zan Dobersek  <zdobersek@igalia.com>
 
+        CoordinatedGraphicsLayer::syncLayerState() should set the m_layerState.contentsOpaque flag
+        https://bugs.webkit.org/show_bug.cgi?id=157575
+
+        Reviewed by Darin Adler.
+
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+        (WebCore::CoordinatedGraphicsLayer::syncLayerState): The contentsOpaque flag in the
+        layer's CoordinatedGraphicsLayerState object should also be set to the current value
+        of the layer. This is the only flag in the union of 9 members that's not being updated
+        in this method.
+
+2016-05-12  Zan Dobersek  <zdobersek@igalia.com>
+
         [TexMap] Handle TextureMapperShaderProgram objects through references
         https://bugs.webkit.org/show_bug.cgi?id=157619
 
index cb94a96..fa37c67 100644 (file)
@@ -675,6 +675,7 @@ void CoordinatedGraphicsLayer::syncLayerState()
     m_layerState.size = m_adjustedSize;
 
     if (m_layerState.flagsChanged) {
+        m_layerState.contentsOpaque = contentsOpaque();
         m_layerState.drawsContent = drawsContent();
         m_layerState.contentsVisible = contentsAreVisible();
         m_layerState.backfaceVisible = backfaceVisibility();