From f47a594f5250b1914c36423ee6b371f0b8db09d0 Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 30 Jun 2014 16:20:04 -0700 Subject: Fix onTrimMemory for HardwareRenderer Also fixes detachFunctor possibly drawing after return Bug: 15189843 Bug: 15990672 Change-Id: I64c48cb674c461a8eeaba407b697e09f72c98ce3 --- libs/hwui/TreeInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/hwui/TreeInfo.h') diff --git a/libs/hwui/TreeInfo.h b/libs/hwui/TreeInfo.h index 083100e8b183..9746ac53906e 100644 --- a/libs/hwui/TreeInfo.h +++ b/libs/hwui/TreeInfo.h @@ -65,7 +65,8 @@ public: // but don't evaluate animators and such as if it isn't detached as a // MODE_FULL will follow shortly. MODE_MAYBE_DETACHING, - // TODO: TRIM_MEMORY? + // Destroy all hardware resources, including DisplayListData, in the tree. + MODE_DESTROY_RESOURCES, }; explicit TreeInfo(TraversalMode mode, RenderState& renderState) -- cgit v1.2.3-59-g8ed1b