diff options
| author | Romain Guy <romainguy@google.com> | 2012-08-07 19:09:57 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2012-08-07 19:09:57 -0700 |
| commit | 33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4 (patch) | |
| tree | d74879134ece535c3930df34a05857566be6307b /libs/hwui/OpenGLRenderer.cpp | |
| parent | 2440e670de0294bdf64592849613db9b8f00ee11 (diff) | |
| download | frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.zip frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.tar.gz frameworks_base-33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4.tar.bz2 | |
Draw an empty border around glyphs to avoid sampling issues
Bug #6942209
The font renderer was preserving a 1 px border around each glyph to ensure
bilinear filtering would work nicely. Unfortunately, this border was not
set to 0 when glyphs were added in the cache to replace old evicted glyphs.
Change-Id: Ib85afca7ebad5cb63f960dc0e87ae162333dbfe8
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 580d6b5..6639231 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2892,7 +2892,7 @@ void OpenGLRenderer::chooseBlending(bool blend, SkXfermode::Mode mode, // the blending, turn blending off here // If the blend mode cannot be implemented using shaders, fall // back to the default SrcOver blend mode instead - if CC_UNLIKELY((mode > SkXfermode::kScreen_Mode)) { + if (CC_UNLIKELY(mode > SkXfermode::kScreen_Mode)) { if (CC_UNLIKELY(mCaches.extensions.hasFramebufferFetch())) { description.framebufferMode = mode; description.swapSrcDst = swapSrcDst; |
