diff options
author | 2021-11-22 10:09:22 -0800 | |
---|---|---|
committer | 2021-11-24 13:22:57 -0800 | |
commit | d0001fee74b578a285fdfbe565e3dd0e451d2bfa (patch) | |
tree | 31877616cf5b5da71be9db78d63330ccee4c9023 /libs/hwui/DeferredLayerUpdater.h | |
parent | afb5771b0e75ce78394233f9b95e664c8fad7f20 (diff) |
Support HDR tonemapping in TextureView
This reuses the HDR tonemapping curve that was used in RenderEngine,
however display-level metadata may not be aligned. But because there are
no composition changes that can cause flicker, e.g., switching rapidly
between using a TextureView and a SurfaceView, then that should be okay.
That means that the HDR tonemapping is not as high quality as it could
be, but it is much better than before.
Bug: 200309590
Test: builds, boots
Test: Instagram video preview
Change-Id: I4dd042333f383f383d568b6f2326ee14facd08ed
Diffstat (limited to 'libs/hwui/DeferredLayerUpdater.h')
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h index da8041f0d0fe..9a4c5505fa35 100644 --- a/libs/hwui/DeferredLayerUpdater.h +++ b/libs/hwui/DeferredLayerUpdater.h @@ -91,7 +91,7 @@ public: void detachSurfaceTexture(); void updateLayer(bool forceFilter, const sk_sp<SkImage>& layerImage, const uint32_t transform, - SkRect currentCrop); + SkRect currentCrop, float maxLuminanceNits = -1.f); void destroyLayer(); |