Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Egl rewrite #1493

Merged
merged 11 commits into from Oct 10, 2012
Merged

Egl rewrite #1493

merged 11 commits into from Oct 10, 2012

Commits on Oct 10, 2012

  1. egl: rewrite

    As promised with f6ecaea, here is a complete rewrite of EGL. At the moment
    this affects only android/amlogic/rpi.
    
    Our previous system of inheritance was wonky, and was one hack after another.
    This provides a single coherent implementation of the window life-cycle. It
    also begins the process of decoupling rendering from windowing (at least for
    EGL)
    
    Each client is expected to fill in its windowing functionality outside of egl.
    
    In theory, adding a new back-end requires only describing how to create/destroy
    native structures and enumerate resolutions. If more functionality is needed, it
    should be added to the EGLNativeType interface rather than hacking up the EGL
    implementation itself.
    
    Also, the back-ends are detected and tested at runtime rather than build-
    time, meaning that it is not necessary to specify a back-end. It also
    means that a single binary would be capable of running on multiple EGL
    back-ends (for example, fbdev and X) when they're added.
    
    Each back-end is required to provide a test-function at runtime to
    determine whether it should be considered for use.
    
    TODO: some introspect for enumerating possible back-ends before window-creation
    TODO: fall-back if the first back-end fails
    TODO: add rpi back-end
    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    2b49c79 View commit details
    Browse the repository at this point in the history
  2. egl: add rbp implementation. Thanks Gimli

    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    8dd8c64 View commit details
    Browse the repository at this point in the history
  3. egl: fix amlplayer build after egl rewrite

    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    b218bfc View commit details
    Browse the repository at this point in the history
  4. egl: expose functions for font load/unload

    Credit pieh for finding/fixing this as the cause of a crash when reloading a
    window
    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    7d32a8c View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    8950b6c View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    52840a4 View commit details
    Browse the repository at this point in the history
  7. egl: Create a way to bypass render completely

    If render is disabled, we essentially go headless. This is necessary on android
    because when our window is destroyed, all graphics operations become errors.
    
    This also has the effect of dropping cpu usage down to ~0% while we're running
    in the background, so it could be used on other platforms when minimized.
    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    d72df19 View commit details
    Browse the repository at this point in the history
  8. egl: hook up enable/disable of gui

    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    71676a0 View commit details
    Browse the repository at this point in the history
  9. egl: mark window dirty when rendering resumes

    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    bd4c0ae View commit details
    Browse the repository at this point in the history
  10. egl: fix missing include after windowing changes

    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    d697108 View commit details
    Browse the repository at this point in the history
  11. [rbp/texture] added support for images where texture size different f…

    …rom decoded image size
    Cory Fields committed Oct 10, 2012
    Copy the full SHA
    a68f8fc View commit details
    Browse the repository at this point in the history