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

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

Issue 1763803002: Pass Windows font rendering preferences from browser to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698