WebGL: Fixup usage of V8 FastCalls
Makes the following changes:
- Adds the scoped fast call and deferred warning/logging mechanism
to drawArrays and drawElements. This was previously missing
- Removes [NoAllocDirectCall] from bindBuffer and bindTexture.
These functions always produce the GL error "attempt to use
deleted object". There is likely an issue with passing interface
objects types with the FastCall API.
- Inlines the definitions of the fast call wrapping bindings since
they are small and we don't want extra jmp instructions in the
hot path.
Bug: 1101475
Change-Id: Ie5db3454a84ba6ec15f52383e1e518f3ffd811af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2506518
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822495}
GitOrigin-RevId: ca4d3c767cc62725628b95e45a55ca9eee64b696
3 files changed