Skip to content
Snippets Groups Projects
Commit a3fde003 authored by Andrew Osmond's avatar Andrew Osmond
Browse files

Bug 1751053 - Avoid intermediate surface allocation to premultiply in...

Bug 1751053 - Avoid intermediate surface allocation to premultiply in ClientWebGLContext::GetSurfaceSnapshot. r=jgilbert, a=RyanVM

The intermediate allocation could fail and it was not handled, causing
an infrequent OOM crash. This patch makes it so we just reuse the
surface buffer we have and does the premultiply inline without requiring
an additional allocation.

Differential Revision: https://phabricator.services.mozilla.com/D136410
parent a77b4501
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment