DescriptionUse a single CGLContextObj to draw and update the IOSurface
There is no reason that this can't be done, based on documentation,
but it may be that this will cause crashes during texture destruction
or context tear-down (see crbug.com/411782).
I have 3 theories as to why these crashes are occurring
1. Using an IOSurface in a CGLContextObj that is also used by a
CAOpenGLLayer causes bugs
2. The crashes observed were because context destruction just crashes
at a certain frequency, and previous patches made context destruction
more frequent.
3. IOSurface-backed textures should be immutable -- no GL texture
should be bound to one IOSurface then the other.
If theory 1 is correct, this will need to be reverted because the crashes
will re-occur. If theories 2 or 3 are correct, then this patch is safe.
BUG=420253
Committed: https://crrev.com/0ea6e165293b7d24deec0d29fb9d6333d3a71b6d
Cr-Commit-Position: refs/heads/master@{#298916}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #
Total comments: 4
Patch Set 4 : Incorporate review feedback #
Messages
Total messages: 18 (4 generated)
|