Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Issue 2562003003: Fix the size of video textures uploaded to WebGL. (Closed)

Created:
4 years ago by Ken Russell (switch to Gerrit)
Modified:
3 years, 11 months ago
CC:
apacible+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, f(malita), haraken, jam, jbauman, Justin Novosad, Kai Ninomiya, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, Stephen White, Srirama, xjz+watch_chromium.org, ynovikov
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the size of video textures uploaded to WebGL. When the hardware-accelerated video decoding path is in use, the expected size of the destination WebGL texture is the video's natural width and height. However, the code was blindly copying the entire video source texture, which might include padding rows from the video encoder. Change to using CopySubTextureCHROMIUM in these code paths, and rely on the caller to allocate the destination texture with the expected size. A regression test for this bug is being added to the WebGL 2.0 conformance suite in https://github.com/KhronosGroup/WebGL/pull/2202 . BUG=672895 CQ_INCLUDE_TRYBOTS=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;master.tryserver.chromium.android:android_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2562003003 Cr-Commit-Position: refs/heads/master@{#442745} Committed: https://chromium.googlesource.com/chromium/src/+/4910ae5b242c441bd047b78bb5cb46ad954920fa

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed review feedback from dalecurtis. Rebased. #

Patch Set 3 : Rebased. Fixed Android build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -53 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.h View 2 chunks +6 lines, -4 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.cc View 1 2 6 chunks +23 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.cpp View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
Ken Russell (switch to Gerrit)
dalecurtis or hubbe: OWNERS review of content/renderer/media/ and media/ please. esprehn or chrishtr: OWNERS review ...
4 years ago (2016-12-10 10:06:22 UTC) #3
Ken Russell (switch to Gerrit)
+junov and senorblanco as FYI
4 years ago (2016-12-12 19:09:54 UTC) #4
DaleCurtis
lgtm https://codereview.chromium.org/2562003003/diff/1/media/renderers/skcanvas_video_renderer.cc File media/renderers/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/2562003003/diff/1/media/renderers/skcanvas_video_renderer.cc#newcode838 media/renderers/skcanvas_video_renderer.cc:838: gfx::Size natural_size = video_frame->natural_size(); const& for consistency?
4 years ago (2016-12-12 19:12:23 UTC) #5
chrishtr
lgtm
4 years ago (2016-12-12 19:40:35 UTC) #6
esprehn
How often do we sync those tests? lgtm
4 years ago (2016-12-12 22:13:45 UTC) #7
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2562003003/diff/1/media/renderers/skcanvas_video_renderer.cc File media/renderers/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/2562003003/diff/1/media/renderers/skcanvas_video_renderer.cc#newcode838 media/renderers/skcanvas_video_renderer.cc:838: gfx::Size natural_size = video_frame->natural_size(); On 2016/12/12 19:12:23, DaleCurtis_OOO_Dec14_Jan6 wrote: ...
4 years ago (2016-12-20 04:45:34 UTC) #8
Ken Russell (switch to Gerrit)
On 2016/12/12 22:13:45, esprehn wrote: > How often do we sync those tests? > > ...
4 years ago (2016-12-20 04:46:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562003003/20001
4 years ago (2016-12-20 04:46:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/183400)
4 years ago (2016-12-20 05:08:50 UTC) #14
esprehn
On 2016/12/20 at 04:46:36, kbr wrote: > On 2016/12/12 22:13:45, esprehn wrote: > > How ...
4 years ago (2016-12-20 05:22:50 UTC) #15
Ken Russell (switch to Gerrit)
On 2016/12/20 05:22:50, esprehn wrote: > On 2016/12/20 at 04:46:36, kbr wrote: > > On ...
4 years ago (2016-12-20 05:35:23 UTC) #16
Ken Russell (switch to Gerrit)
On 2016/12/20 05:35:23, Ken Russell wrote: > On 2016/12/20 05:22:50, esprehn wrote: > > On ...
4 years ago (2016-12-20 05:42:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562003003/40001
3 years, 11 months ago (2017-01-10 22:38:27 UTC) #20
Ken Russell (switch to Gerrit)
ynovikov: FYI, added android_optional_gpu_tests_rel to the tryservers manually. If that tryserver's reliable enough now, let's ...
3 years, 11 months ago (2017-01-10 23:40:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562003003/40001
3 years, 11 months ago (2017-01-10 23:41:05 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 00:53:06 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4910ae5b242c441bd047b78bb5cb...

Powered by Google App Engine
This is Rietveld 408576698