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

Side by Side Diff: third_party/WebKit/Source/web/win/WebFontRendering.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/linux/WebFontRendering.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ref_sp(fontMgr));
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/linux/WebFontRendering.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698