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/libs/ui/GraphicBufferAllocator.cpp
|
0ffa62b26a941fd17b53acbf1441270958fb87b4 |
|
20-Apr-2017 |
Chia-I Wu <olv@google.com> |
libui: log an error on allocation failure This was on the gralloc0/gralloc1 path, but was missing from the HIDL gralloc path. Bug: 37444686 Test: allocate an invalid buffer Change-Id: If1ea0e27c228d82abbcd6f6290eb8fee423828e7
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
1093cf302cdbeb8cbf8ebe8bcaf9ca9ac11600a1 |
|
26-Jan-2017 |
George Burgess IV <gbiv@google.com> |
Fix -Wdouble-promotion warnings This is a manual merge of change https://android-review.googlesource.com/#/c/328520/ , since automerging failed. With the new clang FORTIFY, this code emits the following error: error: implicit conversion increases floating-point precision: 'float' to 'double' [-Werror,-Wdouble-promotion] This is because strncpy is now a function, not a macro defined in a system header. So, the warning is considered to appear in user code (instead of system code), and is therefore no longer suppressed. Bug: 32073964 Test: Now builds with clang FORTIFY Change-Id: I5e8292d7800434268793bc4db4a96f20b7022e17
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
e0ea99cc4ba89452b9b6b1baa33bddcb11f3351a |
|
12-Jan-2017 |
Mark Salyzyn <salyzyn@google.com> |
resolve merge conflicts of a2c2d11f9 to master Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I84d0ffa430df3beca0dcc6ed205ce220d7be1f87
|
7823e124e00576e20e47ec717cbe8bc89f0f2bf2 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if possible - add system includes that are assumed as side effects - define LOG_TAG first Test: compile Bug: 31289077 Bug: 30465923 Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
c03d283e8b3f830d76dd94822b2a13872c05c730 |
|
28-Dec-2016 |
Mark Salyzyn <salyzyn@google.com> |
resolve merge conflicts of 525a5f2 to master Test: build Change-Id: Id1c6d3d9dd158fb086b0d8ab74f7838ef0a51af1
|
67e376d6564f8b9f996a347c9402bdc9da789321 |
|
19-Dec-2016 |
Chia-I Wu <olv@google.com> |
Replace non-const references by pointers Use pointers for outputs to be consistent with the rest of libui/libsurfaceflinger. Remove assignFromHidlVec now that hidl_vec can be casted to std::vector. Test: builds and boots Change-Id: I656367028302e7b877a766eaf6aa2431fe07643b
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
a5e161b1207ef447a51e99856097d69d4a6111e1 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if required - add system includes that are assumed as side effects of log.h - modules that use SLOG should use SLOG for all logging (installd) - define LOG_TAG first - remove logging infrastructure if not used Test: build Bug: 31289077 Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
b018bf0e0877b19e3c7cc2697d0b7729c711eadd |
|
22-Nov-2016 |
Chia-I Wu <olv@google.com> |
libui: update for IAllocator changes Create an IAllocatorClient to allocate/free graphics buffers. Test: builds and boots Change-Id: I9978b61ee2cb6302cce34ed6d740a5616fb7e8f1
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
f62eaf5994ac86f4d84e2d34af727617919d7bb7 |
|
02-Jun-2016 |
Dan Stoza <stoza@google.com> |
Squashed: gralloc1/binder/requestor This is a combination of the following three commits: 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. ----- Create graphic buffer using binder interfaces Using binder interfaces rather than directly allocating the buffer prevents SELinux warnings. ----- 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: 28401203 Bug: 29402015 Bug: 30776557
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
24fa67f62ac9a751b6fcbd7bd69960388a4b2f5b |
|
29-May-2015 |
Dan Stoza <stoza@google.com> |
libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before calling alloc on the gralloc module. This filters out the new flag GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the producer, but which does not affect the allocation of buffers. Bug: 19801661 Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247 (cherry picked from commit b8efdc40039e4900ae2c64fbdfa03906c867ec84)
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
d31824004277f554000417cea349d69f18655e95 |
|
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 (cherry picked from commit 303b9a51239d36d237a7d40c67b5085cdb3c1059)
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
cf56319d4deb2215e5274f321f7fee71caa1ada1 |
|
01-Mar-2012 |
Mathias Agopian <mathias@google.com> |
add more tracing for buffer allocation Change-Id: I8408850d0625985992ef2e2cd0c9f300b1fca293
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
e6f43ddce78d6846af12550ff9193c5c6fe5844b |
|
06-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
32397c1cd3327905173b36baa6fd1c579bc328ff |
|
06-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
9d4536835248525f32f1504a3d28d5bbfa0a2910 |
|
20-Dec-2011 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
a947de88e7863859e6d7e825b1d45abb596a08e5 |
|
30-Jul-2011 |
Mathias Agopian <mathias@google.com> |
improve GraphicAllocator dump method GraphicAllocator debugging cannot deal with custom HAL formats. make this more obvious in the log. Change-Id: I202e58a7f213f32e725aa4eac62cdf6e50ca5894
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
48b888aab9fdcfba250722dffbdffe61f11c64f3 |
|
20-Jan-2011 |
Mathias Agopian <mathias@google.com> |
improve SurfaceFlinger 'dumpsys' log list the purgatory, which shows windows that have been closed, but for which the client still has references. Change-Id: I5168bb88cb328d5d77d71d0871deb9190f493126
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
0a757814f3e4ca4db772144e85b687fe89a7fba5 |
|
09-Dec-2010 |
Mathias Agopian <mathias@google.com> |
fix [3259708] Graphic Buffer Mapper does not support YV12 remove a bunch of a code that was there only to support broken gralloc implementations Change-Id: I3c1a9172224cbcc283601abfbbd695a20815451f
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
1d21a9cafc534c34a2f28c985c4c7aa176d0e67b |
|
02-Dec-2010 |
Erik Gilling <konkers@android.com> |
surfaceflinger: add support for gralloc dump hooks Change-Id: Ib6f539ed0132b70d040d653c03d52cc04249ac3c
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|
c8620b60d67390d2bd0fa0ce53cc63fc18c50244 |
|
25-Mar-2010 |
Mathias Agopian <mathias@google.com> |
fix [2545826] calling into gralloc with external lock held Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
b26af23744fa73e8bc142b1eb98772fde5970c10 |
|
06-Oct-2009 |
Mathias Agopian <mathias@google.com> |
fix [2168531] have software-only gralloc buffer side-step the HAL
/frameworks/native/libs/ui/GraphicBufferAllocator.cpp
|
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/libs/ui/GraphicBufferAllocator.cpp
|