gpu: GL_NEAREST instead of GL_LINEAR for non-scaling copy.
On GPUs that only supports FP16 arithmetic, just doing a copy between the same size of large (>1024px) rectangles already introduces some imprecision. Using GL_NEAREST in such a case increases the quality and produces results closer to pixel-perfect copying. BUG=b:141898654 TEST=android.view.cts.SurfaceViewSyncTest#testSmallRect on kukui (ChromeOS) Change-Id: I2d58ee387122b3977e8e3f439179ce01ff5bf14d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076642Reviewed-by:Peng Huang <penghuang@chromium.org> Reviewed-by:
Daniele Castagna <dcastagna@chromium.org> Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org> Cr-Commit-Position: refs/heads/master@{#745220}
Showing
Please register or sign in to comment