Detach root from window in RenderDrawable

RenderDrawable.renderImage attaches AttachInfo to the root FrameLayout.
This ensures that it is detached after the rendering has been done, so
as not to leak the views.

Bug: 130817348
Test: AddAssetMemoryUseTest from Android Studio
Change-Id: I7650fe72047975ee40d22177a5fb26e01ce72573
(cherry picked from commit 2d16c06fe4d865127a5949422051a53c9fe086df)
1 file changed