Title: [197385] trunk/Source/WebCore
Revision
197385
Author
[email protected]
Date
2016-02-29 23:30:18 -0800 (Mon, 29 Feb 2016)

Log Message

TextureMapperGL: beginPainting() should handle the PaintingMirrored value in PaintFlags
https://bugs.webkit.org/show_bug.cgi?id=154789

Reviewed by Carlos Garcia Campos.

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::beginPainting): The ClipStack should be reset with
a Y-axis mode that corresponds to the presence of the PaintingMirrored value in
the passed-in PaintFlags argument. If present, the default Y-axis mode should be
used, and the inverted Y-axis otherwise.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (197384 => 197385)


--- trunk/Source/WebCore/ChangeLog	2016-03-01 07:28:42 UTC (rev 197384)
+++ trunk/Source/WebCore/ChangeLog	2016-03-01 07:30:18 UTC (rev 197385)
@@ -1,5 +1,18 @@
 2016-02-29  Zan Dobersek  <[email protected]>
 
+        TextureMapperGL: beginPainting() should handle the PaintingMirrored value in PaintFlags
+        https://bugs.webkit.org/show_bug.cgi?id=154789
+
+        Reviewed by Carlos Garcia Campos.
+
+        * platform/graphics/texmap/TextureMapperGL.cpp:
+        (WebCore::TextureMapperGL::beginPainting): The ClipStack should be reset with
+        a Y-axis mode that corresponds to the presence of the PaintingMirrored value in
+        the passed-in PaintFlags argument. If present, the default Y-axis mode should be
+        used, and the inverted Y-axis otherwise.
+
+2016-02-29  Zan Dobersek  <[email protected]>
+
         CoordinatedGraphicsLayer should override the inherited TextureMapperPlatformLayer::Client methods
         https://bugs.webkit.org/show_bug.cgi?id=154788
 

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp (197384 => 197385)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2016-03-01 07:28:42 UTC (rev 197384)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2016-03-01 07:30:18 UTC (rev 197385)
@@ -197,7 +197,7 @@
     m_context3D->depthMask(0);
     m_context3D->getIntegerv(GraphicsContext3D::VIEWPORT, data().viewport);
     m_context3D->getIntegerv(GraphicsContext3D::SCISSOR_BOX, data().previousScissor);
-    m_clipStack.reset(IntRect(0, 0, data().viewport[2], data().viewport[3]), ClipStack::YAxisMode::Inverted);
+    m_clipStack.reset(IntRect(0, 0, data().viewport[2], data().viewport[3]), flags & PaintingMirrored ? ClipStack::YAxisMode::Default : ClipStack::YAxisMode::Inverted);
     m_context3D->getIntegerv(GraphicsContext3D::FRAMEBUFFER_BINDING, &data().targetFrameBuffer);
     data().PaintFlags = flags;
     bindSurface(0);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to