1. 21 Dec, 2021 4 commits
  2. 20 Dec, 2021 12 commits
  3. 16 Dec, 2021 3 commits
  4. 15 Dec, 2021 3 commits
  5. 14 Dec, 2021 12 commits
  6. 13 Dec, 2021 4 commits
  7. 10 Dec, 2021 2 commits
    • Transformer GL: Remove UnsupportedEglVersionException(). · 7d93f2d4
      UnsupportedEglVersionException() is only used once, and seems a bit too
      specific for Transformer. Also, it's possible for eglCreateContext to fail for
      other reasons besides lack of support, so it wasn't always accurate when
      thrown.
      
      It is possible for devices not to support EGL version 2.0 though, per
      https://source.android.com/devices/graphics/implement-opengl-es, which doesn't
      specify the EGL version that must be supported.
      
      PiperOrigin-RevId: 415489396
      huangdarwin committed
    • Make repetitive decode/draw. · 18248733
      tl;dr:
      In the previous transformer, the transcoding flow is
      
      - If a the GL's input surface (from decoder) does not have data, wait 10ms
       (DO_SOME_WORK)
      - Else, make the decoder render **ONE** frame to the GL's input surface
        - Wait at least 10ms, until the frame's texture is available
        - Then process the texture
      
      The process is quite slow, so in the new version, we do:
      - If a the GL's input surface (from decoder) does not have data, wait 10ms
       (DO_SOME_WORK) **same**
      - Else, make the decoder render **as many frames** to the GL's input surface
        - Process **as many** available textures in this DO_SOME_WORK cycle
      
      PiperOrigin-RevId: 415474722
      claincly committed