OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. 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 #include "public/web/win/WebFontRendering.h" | 5 #include "public/web/win/WebFontRendering.h" |
6 | 6 |
7 #include "platform/fonts/FontCache.h" | 7 #include "platform/fonts/FontCache.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 // static | 11 // static |
12 void WebFontRendering::setSkiaFontManager(SkFontMgr* fontMgr) | 12 void WebFontRendering::setSkiaFontManager(SkFontMgr* fontMgr) |
13 { | 13 { |
14 WTF::adopted(fontMgr); | 14 WTF::adopted(fontMgr); |
15 FontCache::setFontManager(RefPtr<SkFontMgr>(fontMgr)); | 15 FontCache::setFontManager(sk_sp<SkFontMgr>(fontMgr)); |
f(malita)
2016/09/01 03:55:39
Ditto.
Łukasz Anforowicz
2016/09/01 20:50:59
Done.
| |
16 } | 16 } |
17 | 17 |
18 // static | 18 // static |
19 void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor) | 19 void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor) |
20 { | 20 { |
21 FontCache::setDeviceScaleFactor(deviceScaleFactor); | 21 FontCache::setDeviceScaleFactor(deviceScaleFactor); |
22 } | 22 } |
23 | 23 |
24 // static | 24 // static |
25 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface) | 25 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 FontCache::setLCDTextEnabled(enabled); | 57 FontCache::setLCDTextEnabled(enabled); |
58 } | 58 } |
59 | 59 |
60 // static | 60 // static |
61 void WebFontRendering::setUseSkiaFontFallback(bool useSkiaFontFallback) | 61 void WebFontRendering::setUseSkiaFontFallback(bool useSkiaFontFallback) |
62 { | 62 { |
63 FontCache::setUseSkiaFontFallback(useSkiaFontFallback); | 63 FontCache::setUseSkiaFontFallback(useSkiaFontFallback); |
64 } | 64 } |
65 | 65 |
66 } // namespace blink | 66 } // namespace blink |
OLD | NEW |