1. 07 Apr, 2015 2 commits
    • Dan Stoza's avatar
      libgui: Remove IGBC::BufferItem · 955c8974
      Dan Stoza authored
      Removes IGraphicBufferConsumer::BufferItem. Depends on the
      following changes:
          I187b3a7d05196b6289596afac8fb9a9d4aebff76
          I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc
      
      Change-Id: I3edf0db8fba656fd78e18a5a7f1137f0fb6b237d
      (cherry picked from commit 1c87e474)
      955c8974
    • Eino-Ville Talvala's avatar
      Cherry-pick dataSpace and BufferItem changes · 1c2001ef
      Eino-Ville Talvala authored
      Add dataSpace to buffer queues; remove old format enums.
      (cherry picked from commit 82c6bcc9)
      
      libgui: Prepare for IGBC::BufferItem removal
      (cherry picked from commit cf3834db)
      
      SurfaceFlinger: Stop using IGBC::BufferItem
      (cherry picked from commit 11611f9b)
      
      Change-Id: Ic2e4770b916d2d1477e5ce98c4b49a0072ea03ff
      (cherry picked from commit 6c450101)
      1c2001ef
  2. 06 Apr, 2015 1 commit
  3. 24 Mar, 2015 1 commit
    • Eino-Ville Talvala's avatar
      Add dataSpace to buffer queues; remove old format enums. · 63e8376d
      Eino-Ville Talvala authored
      - Wire up new dataSpace parameter through buffer queue stack
      - Update tests to include the parameter
      - Switch eglApi to using dataSpace to indicate sRGB gamma/linear
        difference
      - Remove RAW_SENSOR in favor of RAW16
      - Remove use of sRGB format enums
      - Add default dataspace to buffer queue core
      - Add query for default dataspace
      
      Change-Id: I070bd2e7c56506055c419004c29e2e3feac725df
      63e8376d
  4. 20 Mar, 2015 1 commit
    • Dan Stoza's avatar
      DO NOT MERGE libgui: Remove IGBC::BufferItem · 1c87e474
      Dan Stoza authored
      Removes IGraphicBufferConsumer::BufferItem. Depends on the
      following changes:
          I187b3a7d05196b6289596afac8fb9a9d4aebff76
          I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc
      
      Cherry-pick of Id1fa56d092188f2cb712768d5d2fc6a9027fb73c
      
      Change-Id: I3edf0db8fba656fd78e18a5a7f1137f0fb6b237d
      1c87e474
  5. 19 Mar, 2015 2 commits
    • Dan Stoza's avatar
      DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal · cf3834db
      Dan Stoza authored
      Currently, there are two instances of BufferItem: one inside of
      IGraphicBufferConsumer, and a standalone one inside of libgui. They
      only differ in the name of one of the fields, and we want to remove
      the IGBC version. This changes things so that client code may be
      incrementally switched over to the libgui version.
      
      This is a squashed commit containing the following changes:
          I64f495105f56cbf5803cea4aa6b072ea29b70cf5
          I1394e693314429ada93427889f10b7b01c948053
          I9c3bc8037fa9438d4d9080b8afb694219ef2f71f
          I699ed0a6837076867ca756b28d1ffb2238f7a0d9
          Iac8425e1241774304a131da2fb9dec6e82922f13
      
      Change-Id: Ic4d51f5df6dbc70b376d13fceba2335b9bae4f3d
      cf3834db
    • Eino-Ville Talvala's avatar
      DO NOT MERGE Add dataSpace to buffer queues; remove old format enums. · 82c6bcc9
      Eino-Ville Talvala authored
      - Wire up new dataSpace parameter through buffer queue stack
      - Update tests to include the parameter
      - Switch eglApi to using dataSpace to indicate sRGB gamma/linear
        difference
      - Remove RAW_SENSOR in favor of RAW16
      - Remove use of sRGB format enums
      - Add default dataspace to buffer queue core
      - Add query for default dataspace
      
      Cherry pick of I070bd2e7c56506055c419004c29e2e3feac725df
      
      Change-Id: I461952389c18051176c6b75e664f20ad369f5760
      82c6bcc9
  6. 18 Mar, 2015 1 commit
    • Dan Stoza's avatar
      libgui: Enable -Weverything and -Werror · 3be1c6b6
      Dan Stoza authored
      Enables -Weverything and -Werror, with just a few exceptions for
      warnings we can't (or shouldn't need to) work around.
      
      Cherry pick of I034abec27bf4020d84af60d7acc1939c59986dd6 plus a
      couple of minor changes to CpuConsumer.cpp to make it work with a
      prior change:
          Uncomment CC_LOGV on line 46
          Change C-style cast to static_cast on line 71
      
      Change-Id: Iaec610477ea0122317b0578fb74caf2383d4cf08
      3be1c6b6
  7. 16 Mar, 2015 1 commit
    • Dan Stoza's avatar
      libgui: Remove IGBC::BufferItem · 54716317
      Dan Stoza authored
      Removes IGraphicBufferConsumer::BufferItem. Depends on the
      following changes:
          I187b3a7d05196b6289596afac8fb9a9d4aebff76
          I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc
      
      Change-Id: Id1fa56d092188f2cb712768d5d2fc6a9027fb73c
      54716317
  8. 12 Mar, 2015 1 commit
    • Dan Stoza's avatar
      libgui: Prepare for IGBC::BufferItem removal · dd26416f
      Dan Stoza authored
      Switches some dependencies from IGraphicBufferConsumer::BufferItem to
      android::BufferItem and adds some methods to facilitate incrementally
      changing client code to do the same.
      
      Change-Id: I699ed0a6837076867ca756b28d1ffb2238f7a0d9
      dd26416f
  9. 04 Mar, 2015 1 commit
    • Eino-Ville Talvala's avatar
      Add dataSpace to buffer queues; remove old format enums. · 5b75a513
      Eino-Ville Talvala authored
      - Wire up new dataSpace parameter through buffer queue stack
      - Update tests to include the parameter
      - Switch eglApi to using dataSpace to indicate sRGB gamma/linear
        difference
      - Remove RAW_SENSOR in favor of RAW16
      - Remove use of sRGB format enums
      - Add default dataspace to buffer queue core
      - Add query for default dataspace
      
      Change-Id: I070bd2e7c56506055c419004c29e2e3feac725df
      5b75a513
  10. 05 Dec, 2014 2 commits
    • Dan Stoza's avatar
      libgui: Enable -Weverything and -Werror · dd883c0b
      Dan Stoza authored
      Enables -Weverything and -Werror, with just a few exceptions for
      warnings we can't (or shouldn't need to) work around.
      
      This is a squashed commit based on an initial change with a couple of
      fixes to avoid breaking certain targets. The source commits are:
        d723bd76
        00d504c0
        429ba89c
      
      Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6
      dd883c0b
    • Dan Stoza's avatar
      libgui: Enable -Weverything and -Werror · d723bd76
      Dan Stoza authored
      Enables -Weverything and -Werror, with just a few exceptions for
      warnings we can't (or shouldn't need to) work around.
      
      Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6
      d723bd76
  11. 09 Sep, 2014 1 commit
  12. 13 Mar, 2014 1 commit
  13. 18 Nov, 2013 1 commit
  14. 06 Aug, 2013 1 commit
  15. 19 Jul, 2013 1 commit
    • Mathias Agopian's avatar
      BufferQueue improvements and APIs changes · 595264f1
      Mathias Agopian authored
      this is the first step of a series of improvements to
      BufferQueue. A few things happen in this change:
      
      - setSynchronousMode() goes away as well as the SynchronousModeAllowed flag
      - BufferQueue now defaults to (what used to be) synchronous mode
      - a new "controlled by app" flag is passed when creating consumers and producers
        those flags are used to put the BufferQueue in a mode where it
        will never block if both flags are set. This is achieved by:
        - returning an error from dequeueBuffer() if it would block
        - making sure a buffer is always available by replacing
          the previous buffer with the new one in queueBuffer()
          (note: this is similar to what asynchrnous mode used to be)
      
      Note: in this change EGL's swap-interval 0 is broken; this will be
      fixed in another change.
      
      Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d
      595264f1
  16. 13 Jul, 2013 1 commit
  17. 10 Jul, 2013 1 commit
    • Andy McFadden's avatar
      Pay attention to buffer timestamps · 1585c4d9
      Andy McFadden authored
      When acquiring a buffer, SurfaceFlinger now computes the expected
      presentation time and passes it to the BufferQueue acquireBuffer()
      method.  If it's not yet time to display the buffer, acquireBuffer()
      returns PRESENT_LATER instead of a buffer.
      
      The current implementation of the expected-present-time computation
      uses approximations and guesswork.
      
      Bug 7900302
      
      Change-Id: If9345611c5983a11a811935aaf27d6388a5036f1
      1585c4d9
  18. 23 May, 2013 1 commit
    • Lajos Molnar's avatar
      BufferQueue: track buffer-queue by instance vs. by reference · c5d7b7d3
      Lajos Molnar authored
      
      Instead of representing the buffer-queue as a vector of buffer
      indices, represent them as a vector of BufferItems (copies).
      This allows modifying the buffer slots independent of the queued
      buffers.
      
      As part of this change, BufferSlot properties that are only
      been relevant in the buffer-queue have been removed.
      
      Also, invalid scalingMode in queueBuffer now returns an error.
      
      ConsumerBase has also changed to allow reuse of the same
      buffer slots by different buffers.
      
      Change-Id: If2a698fa142b67c69ad41b8eaca6e127eb3ef75b
      Signed-off-by: default avatarLajos Molnar <lajos@google.com>
      Related-to-bug: 7093648
      c5d7b7d3
  19. 17 May, 2013 1 commit
  20. 16 Apr, 2013 1 commit
  21. 13 Feb, 2013 1 commit
    • Jamie Gennis's avatar
      libgui: disallow NULL Fence pointers · 1df8c345
      Jamie Gennis authored
      This change eliminates the uses of a NULL sp<Fence> indicating that no waiting
      is required.  Instead we use a non-NULL but invalid Fence object for which the
      wait methods will return immediately.
      
      Bug: 7892871
      Change-Id: I5360aebe3090422ef6920d56c99fc4eedc642e48
      1df8c345
  22. 05 Oct, 2012 1 commit
    • Jesse Hall's avatar
      Fix race condition in ConsumerBase::addReleaseFence() · 9504eb91
      Jesse Hall authored
      This needs the ConsumerBase mutex locked, but wasn't locking it. Two
      of the four places that called it already held the lock so were fine.
      Now addReleaseFence() takes the lock itself, and I added
      addReleaseFenceLocked() for the two already-locked callers, since in
      one of them dropping the lock would be inconvenient.
      
      Bug: 7289269
      Change-Id: I7a5628adb516f8eec782aa6c14128202f96d7b0a
      9504eb91
  23. 02 Oct, 2012 1 commit
  24. 07 Sep, 2012 1 commit
    • Jamie Gennis's avatar
      libgui: move fence handling into ConsumerBase · b2725415
      Jamie Gennis authored
      This change moves some common fence handling code into the base class for
      BufferQueue consumer classes.  It also makes the ConsumerBase class initialize
      a buffer slot's fence with the acquire fence every time a buffer is acquired.
      
      Change-Id: I0bd88bc269e919653b659bfb3ebfb04dd61692a0
      b2725415
  25. 31 Aug, 2012 1 commit
    • Jamie Gennis's avatar
      BufferQueue: use max acquired buffer count · 72f096fb
      Jamie Gennis authored
      This change makes BufferQueue derive the min undequeued buffer count from a max
      acquired buffer count that is set by the consumer.  This value may be set at
      any time that a producer is not connected to the BufferQueue rather than at
      BufferQueue construction time.
      
      Change-Id: Icf9f1d91ec612a079968ba0a4621deffe48f4e22
      72f096fb
  26. 21 Aug, 2012 1 commit
    • Eino-Ville Talvala's avatar
      Add BufferItemConsumer, a simple BufferQueue consumer. · e232fdca
      Eino-Ville Talvala authored
      BufferItemConsumer allows for acquiring BufferQueue's BufferItems,
      which contain all the data and metadata the BufferQueue has for a
      given graphics buffer.
      
      This consumer is useful when direct access to the native buffer_handles
      is needed by the client.
      
      Also includes a minor cleanup of CpuConsumer's use of 'virtual'.
      
      Bug: 6243944
      Change-Id: If7dc4192b15ac499555f1eda42a85140f2434795
      e232fdca