Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd6f1a70 authored by Romain Guy's avatar Romain Guy
Browse files

Fix Rgba16fTests@testTransferFunctionsShader test

RGBA16F bitmaps used as an SkBitmapShader would not set the hasLinearTexture
flag in the program description, causing a shader to be generated without
the proper opto-electronic transfer function.

Bug: 35482305
Test: bit -t CtsUiRenderingTestCases:android.uirendering.cts.testclasses.Rgba16fTests
Change-Id: I23354f8189a6b27b677eac9df82677e91282a31d
parent 8ec21062
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -217,6 +217,7 @@ bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& model
    const float height = outData->bitmapTexture->height();

    description->hasBitmap = true;
    description->hasLinearTexture = outData->bitmapTexture->isLinear();
    description->isShaderBitmapExternal = hwuiBitmap->isHardware();
    // gralloc doesn't support non-clamp modes
    if (hwuiBitmap->isHardware() || (!caches.extensions().hasNPot()