• Home
  • History
  • Annotate
  • only in /frameworks/native/libs/ui/include/ui/
History log of /frameworks/native/libs/ui/include/ui/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6266589793ddd9769a649a6b5f61ef115179572b 16-Apr-2018 Peiyong Lin <lpy@google.com> [SurfaceFlinger] Extend HDR support.

Previously we stored HDR10 support in DisplayDevice. This patch extends and
generalizes the support to HLG and Dolby Vision.

Minor: Adapt Hdr type from HAL.

BUG: 73825729
BUG: 77156734
Test: Build, flash, watch Youtube HDR
Change-Id: Id642bc9482523b4646814dca9ecfb1f043987dc5
raphicTypes.h
drCapabilities.h
0e7a791d51e92aafefd416044a2d38b6eec22a00 05-Apr-2018 Peiyong Lin <lpy@google.com> [SurfaceFlinger] Plumb HAL to hardware composer.

Previously we introduced HIDL interfaces for Auto Color support. This patch
implements HAL interfaces in DisplayHardware/.

BUG: 73824924
BUG: 73825729
Test: Build
Change-Id: I4f2011bfa9306552d50a88fe0f065932be3efd0c
ebugUtils.h
raphicTypes.h
2e14fbae72638dcc6ee0e20712054f0b326a4b07 03-Apr-2018 Peiyong Lin <lpy@google.com> Merge "[SurfaceFlinger] Replace android_dataspace with Dataspace." into pi-dev
17368c3f627a9ac846a60960c0db82a5769097e1 03-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I4c3a967c,I3fd5732f into pi-dev

* changes:
GraphicBuffer: add optional DetachedBufferHandle
Limit libui header exports for vendors
44addfe5d29023045784293459fab78a5899863b 14-Mar-2018 Jiwen 'Steve' Cai <jwcai@google.com> GraphicBuffer: add optional DetachedBufferHandle

Stores a BufferHub handle that can be used to reattach this
GraphicBuffer back into a BufferHub producer/consumer set. In terms of
GraphicBuffer's relationship with BufferHub, there are three different
modes:

1. Legacy mode: GraphicBuffer is not backed by BufferHub and
mDetachedBufferHandle must be invalid.
2. Detached mode: GraphicBuffer is backed BufferHub, but not part of a
producer/consumer set. In this mode, mDetachedBufferHandle must be valid.
3. Attached mode: GraphicBuffer is backed BufferHub and it's part of a
producer/consumer set. In this mode, mDetachedBufferHandle must be
invalid.

Note that the DetachedBufferHandle is used as a opaque handle for
GraphicBuffer and it's not exposed to VNDK.

Bug: 38137191
Bug: 69982239
Bug: 70046255
Bug: 70912269
Test: GraphicBuffer_test
Change-Id: I4c3a967cb498291aa175312fdadc84edd3b1a8be
etachedBufferHandle.h
raphicBuffer.h
34beb7a0ff0494b0c5ad81104171f8a49e599163 28-Mar-2018 Peiyong Lin <lpy@google.com> [SurfaceFlinger] Replace android_dataspace with Dataspace.

This patch replaces all android_dataspace in SurfaceFlinger with Dataspace
V1.1. 3 commands in sequence are used to do the conversion:

find ./ -type f -exec sed -i -e 's/android_dataspace_t/Dataspace/g' {} \;
find ./ -type f -exec sed -i -e 's/android_dataspace/Dataspace/g' {} \;
find ./ -type f -exec sed -i -e 's/HAL_DATASPACE_/Dataspace::/g' {} \;

With some minor tweak because most of the APIs in frameworks/native are still
accepting android_dataspace/android_dataspace_t.

Next step is to convert the rest of android_dataspace usage to Dataspace in
frameworks/native as well as frameworks/base.

BUG: 77156734
Test: Build and flash
Change-Id: I2304c7014cb49a1c9f67c4563603fb55e8dbd679
raphicTypes.h
7c64f17bd0d70aec63b475c3de850dcf3abaff33 07-Mar-2018 Yiwei Zhang <zzyiwei@google.com> Implement Display Layer Stats V0.1

Try to collect data for analyzing how many display controller layers we
need and what we use them for. This change will collect additional data
from per frame point of view.

Test: adb shell dumpsys SurfaceFlinger --enable-layer-stats
Test: adb shell dumpsys SurfaceFlinger --disable-layer-stats
Test: adb shell dumpsys SurfaceFlinger --clear-layer-stats
Test: adb shell dumpsys SurfaceFlinger --dump-layer-stats
Bug: b/75953772
Change-Id: Ib48777df7e1fed637be7eb1aefbdf1808d1daccd
Merged-In: Ib48777df7e1fed637be7eb1aefbdf1808d1daccd
ebugUtils.h
fd997e0969100418b4df8b8d97d21d497afa76c3 29-Mar-2018 Peiyong Lin <lpy@google.com> Add proper namespace to GraphicTypes.

Renamed GraphicsTypes.h to GraphicTypes.h and added proper namespace to avoid
naming conflict.

BUG: 77156734
Test: Build and flash
Change-Id: Ibd9f454b5b72d5f8c6d94a3869a60a1bf821f106
Merged-In: Ibd9f454b5b72d5f8c6d94a3869a60a1bf821f106
ebugUtils.h
raphicTypes.h
raphicsTypes.h
a52f0295622a42849f5ef81c44589b816b2ccacb 15-Mar-2018 Peiyong Lin <lpy@google.com> [Native] Replace android_color_mode usage with ColorMode.

To ease the pain when we add color mode v1.1, we replace all current
android_color_mode usage in framework native with ColorMode directly from HAL.

BUG: 73824924
Test: Build & flash
Change-Id: I4436fc225c7807506825c7148bc794cb99f278dc
ebugUtils.h
raphicsTypes.h
4f55f16638c161834d39e1581d069780f8918c2f 17-Jan-2018 Chia-I Wu <olv@google.com> libui: use IMapper::createDescriptor_2_1

Update using's in Gralloc2.h to be based on common@1.1 and
mapper@2.1. Use IMapper::createDescriptor_2_1 when it is available.

Test: manual
Change-Id: Id4f805a93a5e9a6cde9ecece7dd4954dec337060
ralloc2.h
e6ecb920255d4dd4182ced22c75cc7c49355b469 27-Dec-2017 Craig Donner <cdonner@google.com> Add new AHardwareBuffer formats and usages with latest HAL change

This time we also mask out EXTERNAL_DISP since it is not supported
in HIDL.

Bug: 66900669
Test: build, and added validation logic to Gralloc2 and
GrallocBufferMapper.

Change-Id: I7f4174581e24e361577640b9263514a168ed482d
ralloc2.h
44444f9f592a99466e75be2d328083cc6b4c3edb 22-Jan-2018 Craig Donner <cdonner@google.com> Revert "Add new AHardwareBuffer formats and usages with latest HAL change."

This reverts commit b3899e5147fcff81be43469d9d6e8e56fc5aaac8.

Reason for revert: breaks video rendering due to the use of an
invalid flag

Bug: 72299511
Test: build

Change-Id: I7ab62b6aae03e813180fabd86f0570aba97beef0
ralloc2.h
b3899e5147fcff81be43469d9d6e8e56fc5aaac8 27-Dec-2017 Craig Donner <cdonner@google.com> Add new AHardwareBuffer formats and usages with latest HAL change.

Bug: 66900669
Test: build, and added validation logic to Gralloc2 and
GrallocBufferMapper.
Change-Id: I374155851fa575a3482084a8b7fbc8f9026b6148
ralloc2.h
df1baddb6f4a13e7253ca547549b3157725c3121 27-Dec-2017 Chia-I Wu <olv@google.com> libui: use unique_fd in Fence

Use unique_fd internally. Add a constructor to create a Fence from
a unique_fd.

Test: boots
Change-Id: I36e7a337885a6559ed6fe82c56b718f56108aaf8
ence.h
80d611613ef1a9c05a31cd3f47badfd4de9b1418 21-Dec-2017 Dan Stoza <stoza@google.com> SF: Switch computeBounds to return FloatRect

Switches Layer::computeBounds to return a FloatRect instead of a Rect.

During the computation of the bounds, we apply the layer transformation
to its nominal dimensions, clip it against its bounds (which are either
its parents bounds or the screen bounds), and apply the inverse of the
layer transformation.

Previously, the intermediate position (after transformation/clip, but
before inverse transformation) was stored as Rect, which is to say that
it was truncated to integer coordinates. After applying the inverse
transformation, this loss of precision can cause glitches where a layer
that should be clipped against, e.g., the side of the screen no longer
creates a watertight seal against that side.

In order to fix this, we now store the intermediate value as a FloatRect
and propagate float precision back through computeBounds. The callers of
computeBounds tend to then immediately apply the transform again, at
which point it is safe to round back to integer.

Bug: 64070729
Bug: 66431327
Bug: 69935057
Test: Modified android.view.cts.SurfaceViewSyncTest#
testSurfaceViewBigScale no longer produces bogus display frames
Change-Id: If5987ca4ad76657f9670a5f59258f896180352e2
loatRect.h
ect.h
abf347cca84ffda2452fb86acd58d07051b328a6 13-Dec-2017 Ivan Lozano <ivanlozano@google.com> Fix libui Region::validate() overflow aborts.

This disables the signed integer overflow sanitizer in getWidth,
getHeight, and getBounds. The overflows in these are expected and
benign. Disabling this should fix the aborts we were seeing in
Region::validate(). These functions are inline, so they don't show
up in the stack trace.

Bug: 69963030
Test: Compiles.
Change-Id: I85b43c166339e6c210f7d8f18d1661746efeada7
ect.h
dbbe33b95336efa74e8bb4ebcf6cba50919aa247 28-Sep-2017 Chia-I Wu <olv@google.com> libui: harden GraphicBufferMapper::importBuffer

Add support for validateBufferSize and getTransportSize from IMapper
2.1. Update GraphicBufferMapper::importBuffer to validate buffer
size, and update GraphicBuffer::flatten to use the handle transport
size.

This fixes two issues with GraphicBuffer. Pointers returned by
lock/lockYCbCr can now be accessed without potential OOB. flatten
no longer includes process-local runtime data.

Bug: 62535446
Bug: 62084097
Bug: 32587089
Test: manual
Change-Id: Ice13af26b84f25e43089637e9d67e3ad820e22ed
ralloc2.h
raphicBuffer.h
raphicBufferMapper.h
a099a24c93bfa599fc5c36a647e946c26f68514f 11-Jan-2017 Kalle Raita <kraita@google.com> Faked HWC for SurfaceFlinger testing

Infrastructure and initial port of transaction tests. Faking the HWC
allows exercising the real path through the SurfaceFlinger, not relying
on screen captures. Faked HWC also opens up the possibility of faking
interactions like display hotplugs.

The tests are verifying the composition rectangles instead of a set of
select pixels. GLES rendering differences won't affect the
results. Also, the test expectations become clearer.

The ported transaction tests ran roughly twice as fast when compared
with the original transaction test. This is mostly due to the thighter
control over the vsyncs.

Test: Running the test on Marlin
Change-Id: I1c876cda78db94c1965498af957e64fdd23459ce
ebugUtils.h
5dac7819ac9461c14f0b7c208597579c5c3fb814 06-Jul-2017 Jesse Hall <jessehall@google.com> Add GraphicBufferMapper::preloadHal

Plumbing to allow Zygote to explicitly preload the a.h.graphics.mapper
HAL. An earlier attempt did this implicitly with a static initializer in
libui.so, but the library is also used by non-Zygote processes that
don't have access to HALs. This way, the HIDL libraries and HAL are only
loaded in Zygote and its children, not random other processes.

Bug: 62353585
Test: check that a.h.graphics.mapper is in /proc/`pid zygote64`/maps
Change-Id: I4989c8089e3a4cfd627f8940f5552950c1c617fc
ralloc2.h
raphicBufferMapper.h
cb496acbe593326e8d5d563847067d02b2df40ec 22-May-2017 Mathias Agopian <mathias@google.com> use 64-bits usage bits almost everywhere

Revert "Revert "use 64-bits usage bits almost everywhere""
This reverts commit 1671de0068de40f57288628d4b757a1c84962a62.

Test: manual, build
Bug: 33350696
Bug: 38466700
Change-Id: Ia2f51b97137dba754b1938dfb1e235f4babc8a88
raphicBuffer.h
e7ec834312579b009c02e5e42012dd465a5779be 22-May-2017 Jiyong Park <jiyong@google.com> Headers of libui is moved to the local directory

This makes clients of libui to be compiled without depending on global
headers.

Bug: 37731063
Test: sailfish build and boots
Test: 'BOARD_VNDK_VERSION=current m libui' successful
Change-Id: I6546f57964f2103bf3534fb8266fee4fb7d4678a
NativeObjectBase.h
ufferQueueDefs.h
olorSpace.h
ebugUtils.h
isplayInfo.h
isplayStatInfo.h
ence.h
enceTime.h
loatRect.h
rameStats.h
ralloc2.h
raphicBuffer.h
raphicBufferAllocator.h
raphicBufferMapper.h
drCapabilities.h
ixelFormat.h
oint.h
ect.h
egion.h
iConfig.h