diff options
author | 2014-02-25 18:50:17 -0800 | |
---|---|---|
committer | 2014-02-25 18:50:17 -0800 | |
commit | 9757ac0b9d62f6aea5e47cfb375f445c78bb7897 (patch) | |
tree | d17c80970154798e66dbf914974926b15fa33f61 /libs/hwui/Layer.cpp | |
parent | 5eb4adcbda0ff22e48716d3cf9356a9a720475b5 (diff) |
Fix TextureView texture filtering.
bug:11748993
TextureView should always be drawn with linear filtering if drawing a
buffer sized differently from the layer.
This fixes a bug where TextureViews that were sized differently from
their contents wouldn't be drawn with texture filtering, causing
visible scaling artifacts.
Change-Id: I8a5d27452fe7269ec53896992f37cff51e3ce15a
Diffstat (limited to 'libs/hwui/Layer.cpp')
-rw-r--r-- | libs/hwui/Layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 54ce64f4069d..8992a13a5c91 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -46,6 +46,7 @@ Layer::Layer(const uint32_t layerWidth, const uint32_t layerHeight): stencil = NULL; debugDrawUpdate = false; hasDrawnSinceUpdate = false; + forceFilter = false; deferredList = NULL; caches.resourceCache.incrementRefcount(this); } |