summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2024-01-25 15:50:56 -0500
committer Leon Scroggins III <scroggo@google.com> 2024-02-02 13:31:44 -0500
commitdf8166e6e49c5ea7285e85e0cd1343ff9274775d (patch)
treefaf2c34e2062eaab834f4206ad3ec9f8b9423113 /libs/gui/DisplayLuts.cpp
parent10c6293422809235b7f01f17ddda457cf9345c53 (diff)
Use a flag to determine isRenderable
Rely on whether the GraphicBuffer has GRALLOC_USAGE_HW_RENDER to determine whether to treat it as a potential output buffer, rather than whether the client intends to write to it. This speculatively fixes a crash where a GraphicBuffer is stored in SkiaRenderEngine's cache without being considered writable, and then a later call attempts to pull it out of the cache to use as output. In practice, this means that when importing the GraphicBuffer as a backend texture in Skia, Skia will treat it as though it might be an output buffer, even if we are only going to sample from it. This should not have an effect on sampling performance. Like I859c6b9ecabfb27151c6a45157ffd7c92cb54275 but basing the behavior change on a flag. A rebased version of that CL will later remove the extra parameter. Bug: 305445199 Test: librenderengine_test Change-Id: I6c436b6b80b27930d82aabf22107216172773b56
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions