Title: [91768] trunk/Source/WebCore
Revision
91768
Author
commit-qu...@webkit.org
Date
2011-07-26 11:53:55 -0700 (Tue, 26 Jul 2011)

Log Message

[SKIA] Make the skia GL context current when drawing text to gpu backed platform context.
https://bugs.webkit.org/show_bug.cgi?id=65182

Patch by Brian Salomon <bsalo...@google.com> on 2011-07-26
Reviewed by Stephen White.

No new tests. Not sure how to test wrong-ctx bugs in layout tests.

* platform/graphics/skia/SkiaFontWin.cpp:
(WebCore::paintSkiaText):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91767 => 91768)


--- trunk/Source/WebCore/ChangeLog	2011-07-26 18:17:20 UTC (rev 91767)
+++ trunk/Source/WebCore/ChangeLog	2011-07-26 18:53:55 UTC (rev 91768)
@@ -1,3 +1,15 @@
+2011-07-26  Brian Salomon  <bsalo...@google.com>
+
+        [SKIA] Make the skia GL context current when drawing text to gpu backed platform context.
+        https://bugs.webkit.org/show_bug.cgi?id=65182
+
+        Reviewed by Stephen White.
+
+        No new tests. Not sure how to test wrong-ctx bugs in layout tests.
+
+        * platform/graphics/skia/SkiaFontWin.cpp:
+        (WebCore::paintSkiaText):
+
 2011-07-26  Emil A Eklund  <e...@chromium.org>
 
         RenderText::absoluteRectsForRange() and absoluteQuadsForRange() have nearly duplicate code

Modified: trunk/Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp (91767 => 91768)


--- trunk/Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp	2011-07-26 18:17:20 UTC (rev 91767)
+++ trunk/Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp	2011-07-26 18:53:55 UTC (rev 91768)
@@ -191,6 +191,9 @@
     SkCanvas* canvas = platformContext->canvas();
     TextDrawingModeFlags textMode = platformContext->getTextDrawingMode();
 
+    // If platformContext is GPU-backed make its GL context current.
+    platformContext->makeGrContextCurrent();
+
     // Filling (if necessary). This is the common case.
     SkPaint paint;
     platformContext->setupPaintForFilling(&paint);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to