commit | 918ad523b2780e0c893f3d2a32d4ec13f2a7e921 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Jun 27 14:45:25 2014 -0700 |
committer | John Reck <jreck@google.com> | Fri Jun 27 22:34:16 2014 +0000 |
tree | a10eb15752acf14bbf50b6e250ca8e8beeb2f736 | |
parent | 81af3aef9a0d015311f6c97e318c81092c74eb47 [diff] [blame] |
More cleanups Change-Id: Id5967944b949a2aec57e4fe9fdcdc04c11b8c35a
diff --git a/libs/hwui/DeferredLayerUpdater.cpp b/libs/hwui/DeferredLayerUpdater.cpp index 02b0372..836de45 100644 --- a/libs/hwui/DeferredLayerUpdater.cpp +++ b/libs/hwui/DeferredLayerUpdater.cpp
@@ -119,5 +119,13 @@ } } +void DeferredLayerUpdater::detachSurfaceTexture() { + if (mSurfaceTexture.get()) { + mSurfaceTexture->detachFromContext(); + mSurfaceTexture = 0; + mLayer->clearTexture(); + } +} + } /* namespace uirenderer */ } /* namespace android */