Fix RAM ballooning in dEQP-EGL.functional.query_context.*

bug: 111008879

When we delete the current context, we need to wait
until it is not current anymore.

The previous handling of this "delete the pending-delete context when
it is not current" never actually deleted anything, because
~EGLContext_t::IS_CURRENT was not applied yet.

This CL moves the attempt to delete pending after ~EGLContext_t:IS_CURRENT
is applied.

Test: Run dEQP-EGL.functional.query_context.* ; resident memory
should not increase by 4 GB

Change-Id: I9ab597aca698e05c166db3881591cd0843c8bd23
1 file changed
tree: 85cc9f3549018dd2f360ecefc84b2e024d336b05
  1. host/
  2. shared/
  3. system/
  4. tests/
  5. Android.mk
  6. common.mk
  7. README