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

Unified Diff: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h

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/FontPlatformDataChromiumWin.h
diff --git a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
index e2a5c05ba5f7df97a238c067ced757fe4dd72fef..5d583451d9dd653b11b55d1f9a18b10e7cd781db 100644
--- a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
+++ b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
@@ -59,6 +59,7 @@ namespace WebCore {
PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT, int* size, int* paintTextFlags);
class FontDescription;
+class GraphicsContext;
class FontPlatformData {
public:
@@ -76,9 +77,7 @@ public:
FontPlatformData(const FontPlatformData&, float textSize);
FontPlatformData(SkTypeface*, const char* name, float textSize, bool fakeBold, bool fakeItalic, FontOrientation = Horizontal);
-#if !ENABLE(GDI_FONTS_ON_WINDOWS)
- void setupPaint(SkPaint*) const;
-#endif
+ void setupPaint(SkPaint*, GraphicsContext* = 0) const;
FontPlatformData& operator=(const FontPlatformData&);

Powered by Google App Engine
This is Rietveld 408576698