• Home
  • History
  • Annotate
  • only in /frameworks/native/libs/nativewindow/include/
History log of /frameworks/native/libs/nativewindow/include/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a11413a2584cf9a51e4315bef27546f602578fb 09-Jun-2017 Mathias Agopian <mathias@google.com> Add missing VNDK pixel formats to AHardwareBuffer

AHardwareBuffer is now the only API available to
vendors to create graphic buffers in their HAL
implementations, unfortunately AHardwareBuffer
was designed for NDK use and was missing all
HAL specific pixel formats.

This CL adds these missing format to the VNDK-only
header.

The implementation is changed to accept all formats
which means, VNDK formats are indirectly exposed
to the NDK.

Bug: 38466076
Test: manual
Change-Id: I1e752cd33641aa861d9d15432cde6bec5a682e9a
rivate/android/AHardwareBufferHelpers.h
ndk/hardware_buffer.h
3aea0e37b08cb09e65de21642aa60c698a3c8d12 09-May-2017 Quddus Chong <quddusc@google.com> docs: Fixed comments to generate API refs correctly.
Test: Verified by manually generating the API refs.

Change-Id: I77f2072d2aa83a6c71e11b216e206c4e6563ab88
ndroid/native_window.h
2041913a05b79b96c5c084f30bb8944049a976c8 22-Apr-2017 Jiwen 'Steve' Cai <jwcai@google.com> BufferQueue: plumbing mConsumerIsProtected

This replaces current logic in BufferQueue that uses
GRALLOC_USAGE_PROTECTED to indicate whether an ANativeWindow is capable
of handling hardware protected gralloc buffers. Current logic is
problematic as it enforces producer to use protected buffer no matter
whether producer side is capable of writing into a protected buffer.

This new solution, however, introduces a new NATIVE_WINDOW_* flag that
consumer can set on IGraphicBufferConsumer to indicate its capacity,
which can then be queried by producer via Surface::query (or
IGraphicBufferProducer::query).

When consumer is capable of reading protected buffer (e.g. a protected
GL context), the producer can generate either a protected or unprotected
buffer.

When consumer is not capable of reading protected buffer, the producer
should only generate unprotected buffer.

Bug: 35726763
Test: videoplayer-nodrm-protected.apk and videoplayer-drm-protected.apk
both works.

Change-Id: I1bf6814c9f1f81f9e04f0e89646b0733ff1a4758
ystem/window.h
07b920e09510d138a07dac8b5b1618871ce4db80 26-Apr-2017 Mathias Agopian <mathias@google.com> AHardwareBuffer now reports its stride

Test: compile / manual
Bug: 37686713
Change-Id: I1d75c67816717dc5d8ef4c71c1ca45d1d86aefb3
ndroid/hardware_buffer.h
2c38b56d19f464142e32030b99ac56afd47ab7cd 21-Apr-2017 Mathias Agopian <mathias@google.com> Plumb gralloc producer/consumer bits correctly

Bug: 33350696
Test: compile, boot device, cts
Change-Id: I2f078cf4bbdf0db49f2e914b051f55629fb37eb6
ndroid/hardware_buffer.h
rivate/android/AHardwareBufferHelpers.h
ndk/window.h
ec3717413332336c7b86545eebcfce8c0681b2dc 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix AHardwareBuffer 10:10:10:2 format" into oc-dev
577aa758027a7cf5e8da938f99f9ec7372e5728f 20-Apr-2017 Jesse Hall <jessehall@google.com> Fix AHardwareBuffer 10:10:10:2 format

Rename this format to match the component ordering we use in the other
formats (RGBA, in LSB to MSB order), and associate it with the right
Vulkan format (A2B10G10R10_UNORM_PACK32, not the BGRA-order
A2R10G10B10_UNORM_PACK32): the former is required in Vulkan while the
latter isn't, and it makes sense for us to be consistent with that.

Also use the _FLOAT suffix for the 4xFP16 format, not _SFLOAT; we don't
use the latter anywhere else and we don't have unsigned floats.

Bug: 37515907
Test: make checkbuild
Change-Id: I4f9e5e39ddef41d373290c26c92d5b94a884a740
ndroid/hardware_buffer.h
1ee859f7f883ef1b17d25dc784fb9ea233c152a4 17-Apr-2017 Jesse Hall <jessehall@google.com> Move AHardwareBuffer_getNativeHandle to VNDK

This was added to the NDK only because we didn't have a way to do
VNDK-only declarations. Now we do.

Bug: 34050596
Test: make checkbuild
Change-Id: I039fccfd9f29c5cc960e7691f0baa70101659949
ndroid/hardware_buffer.h
ndk/hardware_buffer.h
dc96fdfa58260867c993fff78611220874753201 21-Mar-2017 Brian Anderson <brianderson@google.com> egl: Differentiate pending vs invalid timestamps.

Test: adb shell /data/nativetest/libgui_test/libgui_test
--gtest_filter=*GetFrameTimestamps*

Change-Id: Iaa418ff1753a4339bfefaa68a6b03e8c96366a87
ystem/window.h
6b376713907086c9642e7b7e66e51ddfa531b003 04-Apr-2017 Brian Anderson <brianderson@google.com> egl: Avoid use of retire as present

Retire fences from HWC1 are implemented inconsitently,
so present emulation doesn't always work well.

This patch disables present for all HWC1 based devices.

Test: adb shell /data/nativetest/libgui_test/libgui_test
--gtest_filter=*GetFrameTimestamps*
Bug: 36730849, 36887025

Change-Id: I1eba2f8490c2f6feced2a36d1efc4cd66be7da40
ystem/window.h
453effd1f144fb5a6ae89a7c377d20a845c49080 04-Apr-2017 Mathias Agopian <mathias@google.com> Add VNDK API to access AHardwareBuffer from ANativeWindowBuffer

this is to allow vendors to use AHardwareBuffer’s
lock/unlock on buffer dequeued from an
ANativeWindow.

Test: compiled
Bug: 36866217
Change-Id: If630105572ae0e57f6fda19c13e82150f415ed6b
ndk/window.h
0e95cad418cff706743f98c1ac649d3378ab0b34 30-Mar-2017 Mathias Agopian <mathias@google.com> vndk/window.h must be C compatible

Test: added a c compatibility test
Bug: 36725813
Change-Id: Ic7e1c8b50e1818707a9a457d84ed74e7e6c816c8
ndk/window.h
000879a0eb2156727a2221e42d04b6f3e150aa79 21-Mar-2017 Mathias Agopian <mathias@google.com> VNDK ANativeWindow API - step 2

The vndk API is a superset of the NDK API.
Prior to this, vendor would have access to
system/window.h which itself is a superset of
what they need, exposes too much of the internals.

With this change, system/window.h depends on
vndk/window.h which depends on
android/native_window.h

Test: compiled, booted Nexus 6P
Bug: 34453351
Change-Id: Iad7bf035143541843309437fe630cc603d96a76e
ndroid/hardware_buffer.h
ndroid/native_window.h
ystem/window.h
ndk/window.h
a6c0e20ac89b1be29901a7200590bf7cb8b99f78 20-Mar-2017 Mathias Agopian <mathias@google.com> VNDK ANativeWindow API

The vndk API is a superset of the NDK API.
Prior to this, vendor would have access to
system/window.h which itself is a superset of
what they need, exposes too much of the internals.

With this change, system/window.h depends on
vndk/window.h which depends on
android/native_window.h

Test: compiled, booted Nexus 6P
Bug: 34453351
Change-Id: I870e08c652d90b3f2cf4ed7c7ca541ce2893f689
ystem/window.h
ndk/window.h
bf927224c2229e319fe0193cffc2486f7ebc7232 17-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove AHARDWAREBUFFER_USAGE0_GPU_CUBEMAP as it has no corresponding bit in gralloc1."
f185378e2d20ec9e5ab0aaa0ad589f34c18fa27d 17-Mar-2017 Craig Donner <cdonner@google.com> Remove AHARDWAREBUFFER_USAGE0_GPU_CUBEMAP as it has no corresponding
bit in gralloc1.

Bug: 34050596
Test: build, non-functional change
Change-Id: I61e46d6035f8477615f23ab245493336e61abbc3
ndroid/hardware_buffer.h
09932eceb2fcec029edc6aaa0e2bca0591613281 13-Mar-2017 Jesse Hall <jessehall@google.com> Add ANativeWindow_setBuffersTransform

Bug: 32634406
Test: build
Change-Id: I16080008187bd334e64917274fc86afe12dde8e7
ndroid/native_window.h
619634070f2fd5fa6ca0e035323fb2bb2aeea785 25-Feb-2017 Mathias Agopian <mathias@google.com> Remove a dependency of EGL on ui/GraphicBuffer.h

the conversion to a ANativeWindowBuffer is now
handled by libnativewindow.


Test: compiled & run
Bug: cleanup
Change-Id: I52dd64574afbc1eff5bdbefacec234a79f8acd97
rivate/android/AHardwareBufferHelpers.h
a5a719e97cbec30c8968dddf542d86788e1051a4 25-Feb-2017 Craig Donner <cdonner@google.com> Add private consumer and producer flags to AHardwareBuffer.

This also generalizes and simplifies the flag conversion,
making it more bulletproof in the future. To add more flags,
just add new entries into the mapping arrays.

Bug: 34050596
Bug: 35765937
Test: cts-tradefed run cts -m CtsNativeHardwareTestCases
Also added new cc_test libs/nativewindow/tests to test gralloc flag conversion

Change-Id: Ib96b277e837f2ab8c332f14df60e88580e3d868d
ndroid/hardware_buffer.h
rivate/android/AHardwareBufferHelpers.h
89ed4c8cfd8ad64269dfcff9742e16bdd705b926 10-Feb-2017 Mathias Agopian <mathias@google.com> split libandroid.so

- ANativeWindow (native_window.h) and
AHardwareBuffer (hardware_buffer.h) now live
in libnativewindow.so, which is a vodka library.

- libandroid.so still provide those symbols
via a static library version (libnativewindow.a)

- removed libbinder dependency as well

Test: compiled & booted
Bug: 35164655
Change-Id: Ib4bc8e8fc9ec1891bcbee63c28fd0131d82edf29
ndroid/hardware_buffer.h
ndroid/native_window.h
rivate/android/AHardwareBufferHelpers.h