Eliminate temporary std::vector in GetNumericHelper and DoGetFramebufferAttachmentParameter
GetNumericHelper and DoGetFramebufferAttachmentParameter were previously allocating a std::vector of bufsize size and using it as scratch space before copying the result to the output parameter. With this change, GetNumericHelper and DoGetFramebufferAttachmentParameter are modified to write directly into the output parameter. Bug: 1057747 Change-Id: If19d353a9f7d0bc9aa513deede15afad5c05b67f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084111Reviewed-by:Geoff Lang <geofflang@chromium.org> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com> Cr-Commit-Position: refs/heads/master@{#746805}
Showing
Please register or sign in to comment