1. 11 Oct, 2012 3 commits
    • The Android Automerger's avatar
    • Andy McFadden's avatar
      f0c89b28
    • Andy McFadden's avatar
      Fix HDMI unblank behavior · 9e9689c1
      Andy McFadden authored
      Two issues:
      
      (1) We were announcing the hotplug event before we were ready to
      handle blank/unblank events, so we were losing the initial unblank
      that power manager sends us when HDMI is first plugged in.  This
      left the display blank until you toggled the device power off/on.
      
      (2) We were retaining fbTargetHandle for HDMI after the display was
      disconnected.  The value didn't get updated when HDMI was reconnected
      because the display was blank, so we didn't go through that code
      path.  So, when HDMI was re-connected, we passed stale data into
      the HWC.
      
      Bug 7323938
      
      Change-Id: I2335d24fd7b0f00bb23fc63aa7bcf44cb8857c73
      9e9689c1
  2. 10 Oct, 2012 3 commits
  3. 09 Oct, 2012 8 commits
  4. 08 Oct, 2012 2 commits
  5. 07 Oct, 2012 4 commits
  6. 06 Oct, 2012 3 commits
  7. 05 Oct, 2012 10 commits
  8. 04 Oct, 2012 5 commits
    • Jesse Hall's avatar
      Ignore display state changes for disconnected displays · 9a143922
      Jesse Hall authored
      When a display is disconnected, removing it from SurfaceFlinger's
      display list is non-atomic with removing it from the Display Manager
      and any in-flight transactions. So SurfaceFlinger might get a display
      state change transaction for a display it has already forgotten about.
      Just ignore these.
      
      Bug: 7288082
      Change-Id: Ic27e55377f3db40fb34e3b1cd67e43297df117a2
      9a143922
    • Mathias Agopian's avatar
      make sure we don't call into the HWC HAL when not needed · 81cd5d3b
      Mathias Agopian authored
      when enabling/disabling vsync we now make sure to
      not call into the HAL if the state wouldn't change.
      
      Bug: 7274951
      
      Change-Id: Ie24a6d68888a51b577acf9c2a973d85437cbacaf
      81cd5d3b
    • Andy McFadden's avatar
      Fix crashes after HDMI disconnect · eb1caaea
      Andy McFadden authored
      The display was being removed from SurfaceFlinger's list before we
      had a chance to reset HWComposer's layer list, so we were passing
      stale data into the hardware composer (which has its own per-display
      data).  This resulted in "invalid gralloc handle" complaints.
      We now clear the layer list immediately after removing the display.
      
      The display was being removed while its EGLSurface was still
      "current", resulting in "cancelBuffer: BufferQueue has been
      abandoned" complaints.  We now call makeCurrent on the primary
      display before removing the external display.
      
      Bug 7274254
      
      Change-Id: Ia59e3a61d7ec46488b96bf93ec5e4ed3488b70e4
      eb1caaea
    • The Android Automerger's avatar
    • Andy McFadden's avatar
      Fix crashes after HDMI disconnect · 27ec5739
      Andy McFadden authored
      The display was being removed from SurfaceFlinger's list before we
      had a chance to reset HWComposer's layer list, so we were passing
      stale data into the hardware composer (which has its own per-display
      data).  This resulted in "invalid gralloc handle" complaints.
      We now clear the layer list immediately after removing the display.
      
      The display was being removed while its EGLSurface was still
      "current", resulting in "cancelBuffer: BufferQueue has been
      abandoned" complaints.  We now call makeCurrent on the primary
      display before removing the external display.
      
      Bug 7274254
      
      Change-Id: Ia59e3a61d7ec46488b96bf93ec5e4ed3488b70e4
      27ec5739
  9. 03 Oct, 2012 2 commits