Title: [91093] trunk/Source/WebCore
Revision
91093
Author
[email protected]
Date
2011-07-15 12:44:23 -0700 (Fri, 15 Jul 2011)

Log Message

[SKIA] Must make skia's GL context current before drawing in GraphicsContext::clearRect
https://bugs.webkit.org/show_bug.cgi?id=64612

Patch by Brian Salomon <[email protected]> on 2011-07-15
Reviewed by Stephen White.

Tested by compositing/shadows/shadow-drawing.html

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContext::clearRect):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91092 => 91093)


--- trunk/Source/WebCore/ChangeLog	2011-07-15 19:33:50 UTC (rev 91092)
+++ trunk/Source/WebCore/ChangeLog	2011-07-15 19:44:23 UTC (rev 91093)
@@ -1,3 +1,15 @@
+2011-07-15  Brian Salomon  <[email protected]>
+
+        [SKIA] Must make skia's GL context current before drawing in GraphicsContext::clearRect
+        https://bugs.webkit.org/show_bug.cgi?id=64612
+
+        Reviewed by Stephen White.
+
+        Tested by compositing/shadows/shadow-drawing.html
+
+        * platform/graphics/skia/GraphicsContextSkia.cpp:
+        (WebCore::GraphicsContext::clearRect):
+
 2011-07-15  Ian Henderson  <[email protected]>
 
         Avoid rounded rect corner-drawing overhead if no corners are visible

Modified: trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (91092 => 91093)


--- trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp	2011-07-15 19:33:50 UTC (rev 91092)
+++ trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp	2011-07-15 19:44:23 UTC (rev 91093)
@@ -326,6 +326,8 @@
     if (!isRectSkiaSafe(getCTM(), r))
         ClipRectToCanvas(*platformContext()->canvas(), r, &r);
 
+    platformContext()->makeGrContextCurrent();
+
     SkPaint paint;
     platformContext()->setupPaintForFilling(&paint);
     paint.setXfermodeMode(SkXfermode::kClear_Mode);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to