diff options
author | 2009-07-28 18:38:08 +0000 | |
---|---|---|
committer | 2009-07-28 18:38:08 +0000 | |
commit | f18d8760019ae999c63d1f0b0e6e52815202b23b (patch) | |
tree | ba0e9d2ddbd6fe2bb638dcb46849ce15fb6f61f9 /src/images/SkImageDecoder.cpp | |
parent | 5ebd88eb24f238c7afa93417f873c4d329b17d42 (diff) |
Add runtime detection for missing subpixel support in FreeType.
r291 added support for building on platforms where subpixel support
has been compiled out of FreeType. However, it turns out that there is
a common situation in which we build on platforms with subpixel
support, but have to run without it: people downloading Chromium from
the buildbots.
Because we this, we need a runtime solution. Modifying the conversion
routines for this seems suboptimal because the extra branches will
slow down everyone. So we probe subpixel support at runtime by trying
to install a low-pass filter. If we fail at this, then we map all the
SkScalerContext::Rec structures to remove subpixel mode.
http://codereview.appspot.com/98057
git-svn-id: http://skia.googlecode.com/svn/trunk@293 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/images/SkImageDecoder.cpp')
0 files changed, 0 insertions, 0 deletions