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

Unified Diff: Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp

Issue 311193009: Replace GraphicsContext::setupPaintFor* with const getters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Source/platform/fonts/mac/FontMac.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp
diff --git a/Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp b/Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp
index e35b8c5924f950530553310c430452d61528dae7..2af3aba2ec31e3eb2dd68cda77a4d08ebc791535 100644
--- a/Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp
+++ b/Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp
@@ -64,8 +64,7 @@ static void paintGlyphs(GraphicsContext* gc, const SimpleFontData* font,
// We draw text up to two times (once for fill, once for stroke).
if (textMode & TextModeFill) {
- SkPaint paint;
- gc->setupPaintForFilling(&paint);
+ SkPaint paint = gc->fillPaint();
font->platformData().setupPaint(&paint, gc);
gc->adjustTextRenderMode(&paint);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
@@ -77,8 +76,7 @@ static void paintGlyphs(GraphicsContext* gc, const SimpleFontData* font,
&& gc->strokeStyle() != NoStroke
&& gc->strokeThickness() > 0) {
- SkPaint paint;
- gc->setupPaintForStroking(&paint);
+ SkPaint paint = gc->strokePaint();
font->platformData().setupPaint(&paint, gc);
gc->adjustTextRenderMode(&paint);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
« no previous file with comments | « no previous file | Source/platform/fonts/mac/FontMac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698