[Viz, capture] Fix corruption bug: Invalidate marked buffer on reuse and...
[Viz, capture] Fix corruption bug: Invalidate marked buffer on reuse and remark frames on size change The marked buffer must be invalidated, because otherwise it might be used as if it had a correct latest version of the image, while it was overwritten by a smaller image. The second part of the CL is an optimization: If the capture size was reduced due to pool overuse, but content is static, previously it was impossible to cache the result and unnecessary CopyOutputRequests were constantly made. The drawback of the change is that if captured size is changed very rapidly, more copyOutputRequests would be made than before. In all other cases it is optimization. Bug: chromium:1090301 Change-Id: Ia3e6f3dd8901110e5dc07ef1398fb8478717ef63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225766 Commit-Queue: Ilya Nikolaevskiy <ilnik@chromium.org> Reviewed-by:mark a. foltz <mfoltz@chromium.org> Auto-Submit: Ilya Nikolaevskiy <ilnik@chromium.org> Cr-Commit-Position: refs/heads/master@{#774757}
Showing
Please register or sign in to comment