Index: Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp (revision 91933) |
+++ Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp (working copy) |
@@ -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); |