Open Bug 1113665 Opened 10 years ago Updated 2 years ago

Avoiding calling CGLTexImageIOSurface2D during MacIOSurfaceTextureSourceOGL::BindTexture

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

CGLTexImageIOSurface2D basically creates a texture that shares data with a particular IOSurface. We should only be calling it once per GLContext per allocation. CGLTexImageIOSurface2D ends up doing a bunch of work including serializing XML in the kernel. Fixing this should improve WebGL, and hardware accelerated video performance in the compositor.
Blocks: 1113671
We should be able to use the infrastructure created in bug 1010966 to fix this.
It looks like doing exactly what gralloc does might not be best for OS X. With gralloc we have reasons to prefer rebinding textures over the same texture id. I don't think we need or want something similar on OS X.
Depends on: 1118100
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.