Bug 243591

Summary: WebGL Video upload to SRGB8 textures is slow
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 222822    
Bug Blocks:    

Description Kimmo Kinnunen 2022-08-05 10:13:41 PDT
WebGL Video upload to SRGB8 textures is  slow

The GPU codepath uses OpenGL to render the texture. 
SRGB8 is not color-renderable in OpenGL. This should not be a real HW limitation.

ANGLE has more fast paths with glCopyTextureCHROMIUM, but
a) likely it doesn't do source color space conversions(?)
b) it doesn't have x flip
c) it's unclear if it does the SRGB8_ALPHA8 the same way as the current
Comment 1 Radar WebKit Bug Importer 2022-08-12 10:14:17 PDT
<rdar://problem/98575053>