Skip to content

Commit f4adf46

Browse files
author
Sally Qi
committed
[Lut] SkImageInfo width was wrong.
- should be `length`, we over allocated before Bug: 391438603 Bug: 393985848 Test: play with HDR10 blink test on GPU; play HDR video and rotate Flag: EXEMPT small fix Change-Id: I98aa8382ad24dab2ab82ab6868f6ac77a11db708
1 parent 46b08a6 commit f4adf46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/renderengine/skia/filters/LutShader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ sk_sp<SkShader> LutShader::generateLutShader(sk_sp<SkShader> input,
182182
* (R1, G1, B1, 0)
183183
* ...
184184
*/
185-
SkImageInfo info = SkImageInfo::Make(length /* the number of rgba */ * 4, 1,
186-
kRGBA_F16_SkColorType, kPremul_SkAlphaType);
185+
SkImageInfo info = SkImageInfo::Make(length /* the number of rgba */, 1, kRGBA_F16_SkColorType,
186+
kPremul_SkAlphaType);
187187
SkBitmap bitmap;
188188
bitmap.allocPixels(info);
189189
if (!bitmap.installPixels(info, buffer.data(), info.minRowBytes())) {

0 commit comments

Comments
 (0)