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

Side by Side Diff: third_party/WebKit/public/web/win/WebFontRendering.h

Issue 2618443002: Remove use of legacy SkFontMgr factories. (Closed)
Patch Set: Address comments. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 Google Inc. All rights reserved. 1 // Copyright 2014 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebFontRendering_h 5 #ifndef WebFontRendering_h
6 #define WebFontRendering_h 6 #define WebFontRendering_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 #include "third_party/skia/include/core/SkRefCnt.h"
bungeman-chromium 2017/01/10 18:31:14 Unfortunately, this can't really be forward declar
9 10
10 class SkFontMgr; 11 class SkFontMgr;
11 class SkTypeface; 12 class SkTypeface;
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class WebFontRendering { 16 class WebFontRendering {
16 public: 17 public:
17 BLINK_EXPORT static void setSkiaFontManager(SkFontMgr*); 18 BLINK_EXPORT static void setSkiaFontManager(sk_sp<SkFontMgr>);
18 BLINK_EXPORT static void setDeviceScaleFactor(float); 19 BLINK_EXPORT static void setDeviceScaleFactor(float);
19 BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*); 20 BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*);
20 BLINK_EXPORT static void setMenuFontMetrics(const wchar_t* familyName, 21 BLINK_EXPORT static void setMenuFontMetrics(const wchar_t* familyName,
21 int32_t fontHeight); 22 int32_t fontHeight);
22 BLINK_EXPORT static void setSmallCaptionFontMetrics(const wchar_t* familyName, 23 BLINK_EXPORT static void setSmallCaptionFontMetrics(const wchar_t* familyName,
23 int32_t fontHeight); 24 int32_t fontHeight);
24 BLINK_EXPORT static void setStatusFontMetrics(const wchar_t* familyName, 25 BLINK_EXPORT static void setStatusFontMetrics(const wchar_t* familyName,
25 int32_t fontHeight); 26 int32_t fontHeight);
26 BLINK_EXPORT static void setAntialiasedTextEnabled(bool); 27 BLINK_EXPORT static void setAntialiasedTextEnabled(bool);
27 BLINK_EXPORT static void setLCDTextEnabled(bool); 28 BLINK_EXPORT static void setLCDTextEnabled(bool);
28 BLINK_EXPORT static void setUseSkiaFontFallback(bool); 29 BLINK_EXPORT static void setUseSkiaFontFallback(bool);
29 }; 30 };
30 31
31 } // namespace blink 32 } // namespace blink
32 33
33 #endif 34 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698