xbmc/android — pull request #9 by pieh (2012-07-26 21:31:20+00:00)
Title: [droid] faster app resuming

Here's some work i've done to not destroy/reload entire skin, not release and reupload textures when pausing/resuming activity. Tried to keep seperate things in seperate commits to be able to easy follow what I did here.

It's not finished - if context that I try to reuse will not work we should reload textures/shaders/more(?) and I need hints how to notify CApp (or something else that will do the work) that we need to get rid of old and unusable resources and load them again.

I also added there method to check if we can preserve egl context and for now I assumed that we can do it always but from very brief googling it seems that there are some devices with limited number of contexts (nowadays it might be outdated, but having place to check if we can preserve context propably won't hurt?)

This works here (tm), that is on samsung galaxy s2 on ics