History log of /frameworks/base/libs/hwui/OpenGLReadback.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 03-Nov-2017 John Reck <jreck@google.com> Format the world (or just HWUI)

Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
/frameworks/base/libs/hwui/OpenGLReadback.cpp
8472ac67fd1d815022874f5addace0c4334ae9f6 01-Nov-2017 Romain Guy <romainguy@google.com> Fix PixelCopyTest failure in CTS

This feature needs support for renderable float textures, but the checks
were only guaranteeing support for float texture reads.

Bug: 68754504
Test: CtsViewTestCases

Change-Id: I0ce4a81cb8e09c10a5f1e65234685767a24ef8c4
/frameworks/base/libs/hwui/OpenGLReadback.cpp
a6aafa33ec24ce2fb8d9460acf23b40c951edd90 23-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Speculative fix for missing target crash" into oc-mr1-dev
89cd62c8f31d2029263f41d050cf806bfb9935f5 22-Sep-2017 Chris Craik <ccraik@google.com> Speculative fix for missing target crash

Bug: 66451158
Test: manual app usage

Change-Id: I2db3aa73edcb80da25ead64205011705f0beef91
/frameworks/base/libs/hwui/OpenGLReadback.cpp
530a2b44d9a4b40d028c912ade858da73081ed85 23-Jan-2017 Arun <arun.demeure@imgtec.com> Disable hwui blending for first draw to main FBO

bug:34809371

In some applications, the first draw is not opaque - either because the
application is misbehaved, or because hwui is not able to reliably tell
whether the layer is opaque or translucent. This is undefined behaviour
in OpenGL ES and has a significant performance and bandwidth impact on
some tiler GPUs as it requires loading the previous frame's color data.
This change disables blending in that case and also for effectively
opaque blend modes (SRC=GL_ONE, DST=GL_ZERO). It increases performance
by ~10% for Leanback CTS on some low-end GPUs (gradient layer that hwui
incorrectly believes to be translucent).

Test: manual - visual inspection on fugu (nexus player)

Change-Id: I2cbf1c76678acae1a36923e72fd18ed55cd89dc2
/frameworks/base/libs/hwui/OpenGLReadback.cpp
df6520efd78e5c4a06b1b50149280d03e828326d 18-Jul-2017 Stan Iliev <stani@google.com> Fix Skia pipeline readback for non-portrait mode

Apply correctly the image transform matrix passed to
SkiaOpenGLReadback::copyImageInto.
This is fixing 13 of 14 failing android.view.cts.PixelCopyTest
tests (the last failing test is caused by missing wide gamut
support).

Test: Ran CtsViewTestCases CTS tests for Skia and HWUI pipelines.
Bug: 63629735
Change-Id: I67fb06968e21f9aa88973c076870b5557f15d483
/frameworks/base/libs/hwui/OpenGLReadback.cpp
abbedfc84ff28ba2d47c110c9322f2c4133411e7 07-Jul-2017 John Reck <jreck@google.com> Add missing notifyPixelsChanged

Fixes: 63400947
Test: CTS test PixelCopyTest#testReuseBitmap
Change-Id: Iad6fe331f84415528c1858a1fdbf26bce784cd53
/frameworks/base/libs/hwui/OpenGLReadback.cpp
dfce81961dc6f6d17a2a497b95194e7bd7043300 29-Jun-2017 John Reck <jreck@google.com> Merge "Selectively disable filtering if estimated safe" into oc-dev
am: 38c97237e3

Change-Id: Ic3be7167429e8cd6a291ac0465e883522afcf9e3
7bf96a0a6f4824f2d15ec95249b8ff038fe02239 28-Jun-2017 John Reck <jreck@google.com> Selectively disable filtering if estimated safe

If the output matches the source rect then use
GL_NEAREST instead of GL_FILTER. This is a more
pixel-exact capture.

Bug: 38242146
Test: CtsUiRendering & CtsViewTestCases:.PixelCopyTest passes on fugu
Change-Id: I9f57a4124374568f83d45fdc8f83cc767ded888a
/frameworks/base/libs/hwui/OpenGLReadback.cpp
88e060f8817a4d8969fd55f07760c168f9620efc 17-Jun-2017 Romain Guy <romainguy@google.com> Add support for RGBA_F16 readbacks

WCG windows render into RGBA16F surfaces, we need to give the readback
API the ability to read the raw source data for testing.

Bug: 62728191
Test: CtsViewTestCases
Change-Id: I93ead84207dab38fba02d4419b5ae18df9555f8e
/frameworks/base/libs/hwui/OpenGLReadback.cpp
3d7d5f999f636106e6c9d47bddfed4ec8baded35 02-May-2017 Mathias Agopian <mathias@google.com> fix circular dependency libnativewindow <-> libui

Bug: 37647680, 37648355
Test: compile, manual
Change-Id: I00d72d063c252739ca5a63dbf84424ad4f837f89
/frameworks/base/libs/hwui/OpenGLReadback.cpp
7c0ae0f58b9f258560088b670d3a4cb3ec5d832a 17-Apr-2017 Mike Reed <reed@google.com> bitmaps and pixelrefs no longer need lock/unlock

Test: covered by CtsGraphicsTestCases and hwui_unit_tests

Change-Id: I42a25961a2eb3755d2fd22a617aa21a24ec0994f
/frameworks/base/libs/hwui/OpenGLReadback.cpp
8cd3edfa15cc9cdbffa935d19ab894426b08d174 09-Jan-2017 Greg Daniel <egdaniel@google.com> Break Layer class into Gl and Vulkan subclasses

Test: manual testing
Change-Id: Ibd2beed39de3ac6da7448e96496253cfe427dfbb
/frameworks/base/libs/hwui/OpenGLReadback.cpp
9505a6552764461c22ce48f1ac13d025d23e1579 14-Dec-2016 Romain Guy <romainguy@google.com> Add new RGBA_F16 bitmap config

This configuration uses 64 bits per pixel. Heach component is stored as a
half precision float value (16 bits). Half floats can be decoded/encoded
using android.util.Half.

RGBA_F16 bitmaps are used to decode wide-gamut images stored in 16 bit
formats (PNG 16 bit for instance). aapt is currently not aware of PNG
16 bits so such files must be placed in raw/ resource directories.

This first pass provides only partial drawing support with hardware
acceleration. RGBA_F16 bitmaps are stored in linear space and need
to be encoded to gamma space with the appropriate OETF to be rendered
properly on Android's current surfaces. They are however suitable for
linear blending. Full rendering support will be provided in a future
CL (BitmapShaders might be a bit tricky to handle properly during
shader generation).

Bug: 32984164
Test: bit CtsGraphicsTestCases:android.graphics.cts.BitmapRGBAF16Test

Change-Id: I328e6b567441a1b9d152a3e7be944a2cf63193bd
/frameworks/base/libs/hwui/OpenGLReadback.cpp
eb418edae488c0c13edcc10e829bbb0e21eb23ac 15-Dec-2016 John Reck <jreck@google.com> Actually fix pixelcopy for 90/180/270 rotation

Bug: 33421965
Test: PixelCopyTest testWindow* CTS tests
Change-Id: I1b49b3643c5d030c3d2de95de4a0ce3a4ff0111d
/frameworks/base/libs/hwui/OpenGLReadback.cpp
912bebeb7488f498954282a1eb82a4b641e6418e 08-Dec-2016 John Reck <jreck@google.com> Fix window copy for rotation = 90/270

Bug: 33421965
Test: Manual via PixelCopyWindow test in HwAccelerationTest
Change-Id: I2a59fd6a26499635a22444e124cd1ec6f82f6e31
/frameworks/base/libs/hwui/OpenGLReadback.cpp
59eecb526adc5bd7041e7b6147bfcc40dd2c200e 18-Nov-2016 sergeyv <sergeyv@google.com> Support readback from hardware bitmaps

Test: hwuimacro readbackFromHBitmap --onscreen.
bug:30999911
Change-Id: I369c069c40cb0f9adae5a94501815f29c2d7df0f
/frameworks/base/libs/hwui/OpenGLReadback.cpp
c4fbada76aa840105553b2c2bce2204e673d2983 07-Nov-2016 Derek Sollenberger <djsollen@google.com> Support Surface and Layer Readback in the SkiaPipelines.

Test: CTS TextureViewTests and UIRendering
Change-Id: I2969c8f5a975bfd9aebcbb585c64d1fcbb2487c2
/frameworks/base/libs/hwui/OpenGLReadback.cpp