diff options
author | Chris Craik <ccraik@google.com> | 2015-10-23 14:33:42 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-10-26 15:51:48 -0700 |
commit | 818c9fbf1d76d5df19253ba4eb964efa939ec9ec (patch) | |
tree | 6fa7a565ae56d5c92a5905b19c9a20f675b0526b /libs/hwui/Layer.cpp | |
parent | 914e362d1884a79588e848f6f87772e4e3fc73b2 (diff) |
Initial version of clipped saveLayer in new pipeline
Additionally disables usage of FBO cache, so FBO destruction safely
interacts with renderstate caching.
Change-Id: I25c277cb7afec2ca33bf226445d6c8867a15a915
Diffstat (limited to 'libs/hwui/Layer.cpp')
-rw-r--r-- | libs/hwui/Layer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index f99d92b89420..489ebc116a2a 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -155,8 +155,7 @@ void Layer::removeFbo(bool flush) { if (fbo) { if (flush) LayerRenderer::flushLayer(renderState, this); - // If put fails the cache will delete the FBO - caches.fboCache.put(fbo); + renderState.deleteFramebuffer(fbo); fbo = 0; } } |