Reland "Fix HTML5 video blurry"
Original CL: https://codereview.chromium.org/2418173002/ Revert CL: https://codereview.chromium.org/2463103002/ https://codereview.chromium.org/2474073004 https://codereview.chromium.org/2544893006 Since it was reverted long time ago, reimplement it from the scratch. HW decoded video is blurry, because crbug.com/575587 shinked visual rect by 1 pixel, if coded rect is larger than visual rect. This fixed bleeding texture, but caused blurry issue. Meanwhile, crbug.com/429640 fixed bleeding texture for software YUV video in the elegant way. It clamps all texture coordinates to this maximum value in the fragment shader. This CL removes the 1 pixel hack and applies the way to TextureDrawQuad and StreamVideoDrawQuad. In addition, Video overlay requires this fix because there is noticible transition between GPU composition and hardware overlay. TEST=cc_unittests PrecisionSamplerShadersCompile/PrecisionSamplerShaderPixelTest.ShadersCompile chrome on http://browsertests.herokuapp.com/media/sharpness.html using amd64-generic BUG=615325, 683347 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I63c8736a365f0024513bfe1e999bc7beb7321da5 Reviewed-on: https://chromium-review.googlesource.com/567809 Commit-Queue: Dongseong Hwang <dongseong.hwang@intel.com> Reviewed-by:ccameron chromium <ccameron@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Reviewed-by:
Dongseong Hwang <dongseong.hwang@intel.com> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#488504}
Showing
Please register or sign in to comment