1. 24 Apr, 2012 6 commits
  2. 20 Apr, 2012 2 commits
  3. 19 Apr, 2012 5 commits
  4. 18 Apr, 2012 6 commits
  5. 17 Apr, 2012 10 commits
    • Jamie Gennis's avatar
      SurfaceTexture: fix a memory leak · 9aa74dbc
      Jamie Gennis authored
      This change fixes an issue where we were sometimes setting the SurfaceTexture's
      EGLDisplay to EGL_NO_DISPLAY in detachFromContext, and then subsequently
      abandoning the texture.  Abandoning while in the detached state would result in
      the eglDestroyImageKHR calls failing, which resulted in a memory leak.
      
      Bug: 6302694
      Change-Id: I24c1de0dac029a83c7508075fb8aaeaed96a14ea
      9aa74dbc
    • Jamie Gennis's avatar
      Merge changes Id79430f9,I541d3046 · 2efa4b2b
      Jamie Gennis authored
      * changes:
        BufferQueue: check before tracing buffer index
        SurfaceTexture: shrink all sides when cropping
      2efa4b2b
    • Jesse Hall's avatar
      Fix deadlock when cleaning objects in eglTerminate · a0fef1c8
      Jesse Hall authored
      When eglTerminate() is called with a window surface still exists, a
      deadlock would occur since egl_display_t::terminate() holds a lock
      while destroying the window surface, which calls
      onWindowSurfaceDestroyed() which attempts to take the same lock.
      
      This change refactors the hibernation code and data into a separate
      object with its own lock, separate from the egl_display_t lock. This
      avoids the deadlock and better encapsulates the hibernation logic.
      
      The change also fixes a bug discovered incidentally while debugging:
      hibernating after calling eglTerminate() succeeds, but will cause
      awakens from subsequent eglInitialize() to fail. We will no longer
      hibernate a terminated display.
      
      Change-Id: If55e5bb603d4f8953babc439ffc8d8a60af103d9
      a0fef1c8
    • Mathias Agopian's avatar
    • Chris Craik's avatar
      Merge "Add webview tracing bit" · 4851e21d
      Chris Craik authored
      4851e21d
    • Daniel Lam's avatar
      Added an EGLTest for eglTerminate · 1cbcb98a
      Daniel Lam authored
      This tests if eglTerminate can succeed while objects
      are leaked.  Currently the test fails because of a deadlock.
      
      Change-Id: Ibe26edfda28691284d0674e803e8d3114f3ce4c6
      1cbcb98a
    • Jamie Gennis's avatar
      BufferQueue: check before tracing buffer index · 695e331f
      Jamie Gennis authored
      This change adds a check on ATRACE_ENABLED before calling snprintf to trace the
      buffer index.
      
      Change-Id: Id79430f9c69706393efd3d10780a4cc97055e9e0
      695e331f
    • Jamie Gennis's avatar
      SurfaceTexture: shrink all sides when cropping · 91a6826d
      Jamie Gennis authored
      This change makes SurfaceTexture include an offset for all sides of the crop
      region when cropping.  This keeps the image centered, to minimize the visual
      changes when switching between the texture transform matrix-based cropping and
      something that does proper cropping (e.g. HWComposer).
      
      Change-Id: I541d3046fd92e49221b488444df36d490924d1c5
      91a6826d
    • Mathias Agopian's avatar
      double checked locking pattern is not safe on SMP · e8db871d
      Mathias Agopian authored
      Change-Id: Ie6dd564bdcd45647cb4d62ab259462e3db112576
      e8db871d
    • Mathias Agopian's avatar
      fix Region const_iterator. · 3aecbb07
      Mathias Agopian authored
      - it returned an empty rect when the region was empty, instead
      of returning an empty list of rect.
      
      - also fixed an infinite loop when boolean_operation was given
      an empty list of rects
      
      Change-Id: I62225c7dcd2832025bb8f12e6cb3762f2a7b36cb
      3aecbb07
  6. 16 Apr, 2012 7 commits
  7. 13 Apr, 2012 4 commits