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

Unified Diff: Source/core/platform/graphics/chromium/UniscribeHelper.cpp

Issue 24422003: Merge FontPlatformData::setupPaint and setupPaintForFont on Win (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w/gdi fix Created 7 years, 3 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
Index: Source/core/platform/graphics/chromium/UniscribeHelper.cpp
diff --git a/Source/core/platform/graphics/chromium/UniscribeHelper.cpp b/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
index 1794a02a62d16047a06d7c98359c537bca51529a..8522d2b5e44b91f8ef15ba744e3f424ab0489503 100644
--- a/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
+++ b/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
@@ -324,10 +324,9 @@ int UniscribeHelper::xToCharacter(int x) const
return 0;
}
-void UniscribeHelper::draw(GraphicsContext* graphicsContext, HDC dc,
- int x, int y,
- const FloatRect& textRect,
- int from, int to)
+void UniscribeHelper::draw(GraphicsContext* graphicsContext,
+ const FontPlatformData& fontPlatformData, HDC dc, int x, int y,
+ const FloatRect& textRect, int from, int to)
{
HGDIOBJ oldFont = 0;
int curX = x;
@@ -423,13 +422,14 @@ void UniscribeHelper::draw(GraphicsContext* graphicsContext, HDC dc,
origin.fX = curX + + innerOffset;
origin.fY = y + m_ascent;
paintSkiaText(graphicsContext,
- shaping.m_hfont,
- glyphCount,
- &shaping.m_glyphs[fromGlyph],
- advances,
- &shaping.m_offsets[fromGlyph],
- origin,
- textRect);
+ fontPlatformData,
+ shaping.m_hfont,
+ glyphCount,
+ &shaping.m_glyphs[fromGlyph],
+ advances,
+ &shaping.m_offsets[fromGlyph],
+ origin,
+ textRect);
textOutOk = true;
if (!textOutOk && 0 == executions) {
« no previous file with comments | « Source/core/platform/graphics/chromium/UniscribeHelper.h ('k') | Source/core/platform/graphics/skia/SkiaFontWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698