Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp

Issue 7520031: Merge 91768 - [SKIA] Make the skia GL context current when drawing text to gpu backed platform co... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698