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 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 { | 56 { |
57 SkFontHost::SetSubpixelOrder(order); | 57 SkFontHost::SetSubpixelOrder(order); |
58 } | 58 } |
59 | 59 |
60 // static | 60 // static |
61 void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation) | 61 void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation) |
62 { | 62 { |
63 SkFontHost::SetSubpixelOrientation(orientation); | 63 SkFontHost::SetSubpixelOrientation(orientation); |
64 } | 64 } |
65 | 65 |
| 66 // static |
| 67 void WebFontRendering::setAntialiasedTextEnabled(bool enabled) |
| 68 { |
| 69 FontCache::setAntialiasedTextEnabled(enabled); |
| 70 } |
| 71 |
| 72 // static |
| 73 void WebFontRendering::setLCDTextEnabled(bool enabled) |
| 74 { |
| 75 FontCache::setLCDTextEnabled(enabled); |
| 76 } |
| 77 |
66 } // namespace blink | 78 } // namespace blink |
OLD | NEW |