Change type of |upload_pixels_| to improve performance

For issue 817341, fuzzer tests were taking a long time due to calls to
std::vector<uint8_t>::resize(), as it initializes each element one by
one. Switching to std::unique_ptr<uint8_t[]> speed things up, as the
elements are not initialized. As VideoResourceUpdater allocates a
temporary buffer to hold a video frame, it could also benefit from the
improved execution time.

TEST=media_unittests pass

Change-Id: I63c1afce3eb6b654c8863a555642ee3e05c1c883
Reviewed-by: Dale Curtis <>
Commit-Queue: John Rummell <>
Cr-Commit-Position: refs/heads/master@{#575479}
2 files changed