Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

WIP GLSurfaceView #7736

Closed
wants to merge 2 commits into from
Closed

WIP GLSurfaceView #7736

wants to merge 2 commits into from

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jan 16, 2017

WIP, Closes #5766, this PR migrates from using SurfaceView as a drawing surface to a GLSurfaceView implementation. More information on this topic in #5766.

Current state:

  • replace SurfaceView with GLSurfaceView
  • remove (deprecated) support for TextureView
  • allow GLSurfaceView to create and maintain GL components (eglContext, eglDisplay, etc).
  • post callbacks coming from the render thread to the main thread (invalidate, mapchange, etc.)
  • cleanup callback code
  • move rendering to the render thread*
  • ...

*= it's currently unclear what next actions are to resolve this, currently queuing a runnable to be executed on the render thread is resulting in a native crash. I have tried instantiating the map object on the render thread itself but our runloop implementation doesn't agree with that.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jan 16, 2017
@tobrun tobrun added this to the android-v5.0.0 milestone Jan 16, 2017
@tobrun tobrun self-assigned this Jan 16, 2017
@mention-bot
Copy link

@tobrun, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @incanus and @tmpsantos to be potential reviewers.

@tobrun
Copy link
Member Author

tobrun commented Feb 13, 2017

continous in #8031

@tobrun tobrun closed this Feb 13, 2017
@jfirebaugh jfirebaugh deleted the tvn-glsurfaceview-render branch May 11, 2017 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement GLSurfaceView
2 participants