82c049843870fc72ff36f48b970dfaf413db0687 |
|
19-Apr-2017 |
Chris Forbes <chrisforbes@google.com> |
ui: Rework GraphicBuffer + Allocator for 64bit usage Removes gralloc1-style flags, and replaces with HIDL-style single 64bit usage. Internal storage of the usage is still 32bit; to be addressed with a future change. Change-Id: I60062208cbb06bc8cf6c293e7c7e1530c1147912 Bug: b/33350696 Test: Bullhead: booted to launcher, take photo, watch youtube
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
cb8405e7e74398aeafc9ef6ddb59af2d7cc6d2a6 |
|
18-Apr-2017 |
Chia-I Wu <olv@google.com> |
libui: remove gralloc0/gralloc1 support We now talk to HIDL gralloc exclusively. Bug: 37433368 Test: boots Change-Id: Iecd2f9a02c7066b2f33f24c1de57e9c4af8e28f5
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
5bac7f36ee9d5ed0c2e8a0141909ca94351965a8 |
|
06-Apr-2017 |
Chia-I Wu <olv@google.com> |
libui: update for revised HIDL gralloc The revised HIDL gralloc is implementable on top of gralloc0 and gralloc1, which enables us to remove all legacy code. However, it lacks the ability to query buffer properties from a buffer handle. GetBufferFromHandle in VR always fails. Bug: 36481301 Test: builds and boots on Pixel Change-Id: Id7cfa2d2172dfc008803860f24fcf4f03ba05f11
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
fe2f54fc8a9810708fe05d719721af19aea10a4a |
|
16-Feb-2017 |
Mathias Agopian <mathias@google.com> |
cleanup libui’s includes - remove unneeded includes - include a cpp’s header first in all cpps Test: compiled & booted Bug: 35164655 Change-Id: I0890913fcc6614cce156aff19fccdef183145beb
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
e96a325aff9da4e02abeb7b9178592583cf3b78c |
|
02-Feb-2017 |
Craig Donner <cdonner@google.com> |
Add methods for allocating and locking GraphicBuffers via gralloc1 flags Bug: 34050596 Test: manual Change-Id: I9515e60fe6b67d2c6f02b1bb78651669430f12ef
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
6ebc46a7c01b22bc19d3c00b493f8d930b15b43a |
|
22-Oct-2016 |
Craig Donner <cdonner@google.com> |
Add layered buffer support to libui and libgui. Bug: 31686534 Test: manual Change-Id: Ia40270701467f4b785660324cad883e7da08989a
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
9ba189dc5c03040d45dad2080a81115f48f099c3 |
|
22-Sep-2016 |
Chia-I Wu <olv@google.com> |
libui: add support for android.hardware.graphics Add Gralloc2::Allocator and Gralloc2::Mapper as wrappers to android.hardware.graphics.allocator@2.0 and android.hardware.graphics.mapper@2.0 respectively. Prefer Gralloc2::{Allocator,Mapper} in GraphicBufferAllocator/GraphicBufferMapper. The new path has these differences - it does not support gralloc0 - it does not dup-and-close fence fds to and from HAL (not sure why we did that) - release implies native_handle_close and native_handle_delete (same as in gralloc1?) When all interesting targets have android.hardware.graphics implementations, the old path will be removed. That is why the new path is added in the least intrusive way, as in: if (new-path-valid) { new-path; } else { old-path; } despite the ugliness. Test: booted to launcher, tested with YouTube and some games Change-Id: Idabb6c62e73c96a59736b497c6d6d1366095e7e3
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
024e9313ce69ced1f853d737de680ef9f50ed26d |
|
24-Aug-2016 |
Dan Stoza <stoza@google.com> |
Add requestor name to GraphicBuffer alloc metadata Adds a requestor name (usually the BufferQueue consumer's name) to the metadata that GraphicBufferAllocator stores on allocation so that `dumpsys SurfaceFlinger` can attempt to attribute buffer usage to the correct client. Bug: 30776557 Change-Id: I6e0f346584c871bb3b9d5481f82b697b0475a916
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
8deb4da6e8fe4687991da32ae68fa0bca4cb8212 |
|
02-Jun-2016 |
Dan Stoza <stoza@google.com> |
libui: Convert Allocator and Mapper to gralloc1 Converts GraphicBufferAllocator and GraphicBufferMapper to speak gralloc 1.0 (via the C++ shim and optionally the 1On0 adapter) instead of gralloc 0.x. Bug: 28401203 Change-Id: Ie1649f0ee72801579be2c2d3c47177b52962a825
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
303b9a51239d36d237a7d40c67b5085cdb3c1059 |
|
17-Nov-2014 |
Dan Stoza <stoza@google.com> |
libui: Enable -Weverything and -Werror Enables -Weverything and -Werror, with just a few exceptions for warnings we can't (or shouldn't need to) work around. Change-Id: I470a267e9b1c373f2d5c960f005c3b0e02b2db63
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
678bdd6349344df254cc0c3377a40fd99e216635 |
|
04-Dec-2010 |
Mathias Agopian <mathias@google.com> |
[3171580] don't automatically log GraphicBuffer allocation failures some of these failures are not fatal and even expected in some cases so they should not emit a dump in the log in those cases. Change-Id: Idcfa252e3bfa9d74e27fe4ad8f8623aa01aa9c5e
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
5629eb167638a9ebfa5059177d227c7ac67db46f |
|
15-Apr-2010 |
Mathias Agopian <mathias@google.com> |
when a zero dimension buffer is allocated, turn the allocation into a 1x1 buffer instead of Nx1 (or 1xN) Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
c8620b60d67390d2bd0fa0ce53cc63fc18c50244 |
|
25-Mar-2010 |
Mathias Agopian <mathias@google.com> |
fix [2545826] calling into gralloc with external lock held Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
/frameworks/native/include/ui/GraphicBufferAllocator.h
|
3330b203039dea366d4981db1408a460134b2d2c |
|
06-Oct-2009 |
Mathias Agopian <mathias@google.com> |
fix [2167050] glTexImage2D code path buggy in SurfaceFlinger When EGLImage extension is not available, SurfaceFlinger will fallback to using glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an extra copy. However this code path has never been exercised and had some bugs which this patch fix. Mainly the scale factor wasn't computed right when falling back on glDrawElements. We also fallback to this mode of operation if a buffer doesn't have the adequate usage bits for EGLImage usage. This changes only code that is currently not executed. Some refactoring was needed to keep the change clean. This doesn't change anything functionaly.
/frameworks/native/include/ui/GraphicBufferAllocator.h
|