Title: [201275] trunk/Source/WebKit2
Revision
201275
Author
commit-qu...@webkit.org
Date
2016-05-23 05:26:34 -0700 (Mon, 23 May 2016)

Log Message

[ThreadedCompositor] Ensure that the BitmapTexture used by CoordinatedBackingStoreTile matches the opacity of the painted surface
https://bugs.webkit.org/show_bug.cgi?id=157942

Patch by Miguel Gomez <mago...@igalia.com> on 2016-05-23
Reviewed by Žan Doberšek.

* Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp:
(WebKit::CoordinatedBackingStoreTile::swapBuffers):
Reset the BitmapTexture if it doesn't match the opacity required by the surface
that's being painted.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (201274 => 201275)


--- trunk/Source/WebKit2/ChangeLog	2016-05-23 12:25:19 UTC (rev 201274)
+++ trunk/Source/WebKit2/ChangeLog	2016-05-23 12:26:34 UTC (rev 201275)
@@ -1,3 +1,15 @@
+2016-05-23  Miguel Gomez  <mago...@igalia.com>
+
+        [ThreadedCompositor] Ensure that the BitmapTexture used by CoordinatedBackingStoreTile matches the opacity of the painted surface
+        https://bugs.webkit.org/show_bug.cgi?id=157942
+
+        Reviewed by Žan Doberšek.
+
+        * Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp:
+        (WebKit::CoordinatedBackingStoreTile::swapBuffers):
+        Reset the BitmapTexture if it doesn't match the opacity required by the surface
+        that's being painted.
+
 2016-05-22  Carlos Garcia Campos  <cgar...@igalia.com>
 
         [GTK] Disk cache: enable speculative revalidation

Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp (201274 => 201275)


--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp	2016-05-23 12:25:19 UTC (rev 201274)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp	2016-05-23 12:26:34 UTC (rev 201275)
@@ -49,6 +49,9 @@
         shouldReset = true;
     }
 
+    if (m_surface->supportsAlpha() == texture->isOpaque())
+        shouldReset = true;
+
     ASSERT(textureMapper.maxTextureSize().width() >= m_tileRect.size().width());
     ASSERT(textureMapper.maxTextureSize().height() >= m_tileRect.size().height());
     if (shouldReset)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to