diff options
author | Chris Craik <ccraik@google.com> | 2014-02-27 22:20:31 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-27 22:20:31 +0000 |
commit | da3f525759d4b875fd6a498cbe22f7bc9e53aa83 (patch) | |
tree | 9bee37b2bbc11f876f76a8e2398d3ebe2d4e877f /libs/hwui/OpenGLRenderer.cpp | |
parent | 98bab263500b258025c9c6ca64f8aaff7dc914f4 (diff) | |
parent | 9757ac0b9d62f6aea5e47cfb375f445c78bb7897 (diff) | |
download | frameworks_base-da3f525759d4b875fd6a498cbe22f7bc9e53aa83.zip frameworks_base-da3f525759d4b875fd6a498cbe22f7bc9e53aa83.tar.gz frameworks_base-da3f525759d4b875fd6a498cbe22f7bc9e53aa83.tar.bz2 |
Merge "Fix TextureView texture filtering."
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 9ac2792..1c59c30 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1068,6 +1068,7 @@ void OpenGLRenderer::drawTextureLayer(Layer* layer, const Rect& rect) { setupDrawExternalTexture(layer->getTexture()); } if (currentTransform()->isPureTranslate() && + !layer->getForceFilter() && layer->getWidth() == (uint32_t) rect.getWidth() && layer->getHeight() == (uint32_t) rect.getHeight()) { const float x = (int) floorf(rect.left + currentTransform()->getTranslateX() + 0.5f); |