DescriptionGpuMemoryBuffers: Tighten AcquireIOSurface's error checking
The function AcquireIOSurface accounts for most of the situations where
GpuMemoryBuffer allocation fails.
Add a CHECK that mach_port_allocate succeeds, because there is no
recovery for being out of resources in this way.
Add a CHECK that, if the browser returns Mach port, that port is valid
can be successfully opened as an IOSurface. This should never be hit,
because the browser should return a valid port if it reports success.
Add a CHECK that mach_msg succeed. The suspicion is that this will
account for all failures of AcquireIOSurface (and that this particular
part of the patch will need to be reverted due to high crash rates).
BUG=554541
Committed: https://crrev.com/efeb58b686b4c9531ce334f0adc34c8cd13ec78b
Cr-Commit-Position: refs/heads/master@{#364432}
Patch Set 1 #Patch Set 2 : Add comment #Messages
Total messages: 15 (7 generated)
|