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

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)

Created:
3 years, 9 months ago by Kai Ninomiya
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, Justin Novosad, mlamouri+watch-blink_chromium.org, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prototype HTMLVideoElement properties for WebGL texImage2D These properties provide the width, height, and time of the last video frame uploaded to a WebGL texture via texImage2D. BUG=639174 CQ_INCLUDE_TRYBOTS=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 Review-Url: https://codereview.chromium.org/2749653003 Cr-Commit-Position: refs/heads/master@{#460606} Committed: https://chromium.googlesource.com/chromium/src/+/36eeff88e474d2e562f2d656bb94d0e37770e245

Patch Set 1 #

Patch Set 2 : use VideoFrame #

Total comments: 1

Patch Set 3 : update #

Patch Set 4 : update #

Total comments: 8

Patch Set 5 : move fields to WebGLTexture #

Total comments: 6

Patch Set 6 : test + fix, renames according to comments #

Patch Set 7 : rebase #

Patch Set 8 : fix texImage2D call #

Patch Set 9 : hopefully fix some tests #

Patch Set 10 : update global-interface-listing #

Patch Set 11 : rebase #

Total comments: 1

Patch Set 12 : add threshold on float equality #

Total comments: 6

Patch Set 13 : early-return for video_frame #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -3 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +25 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas-experimental/webgl/texImage-video-last-uploaded-metadata.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +61 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas-experimental/webgl/texImage-video-last-uploaded-metadata-expected.txt View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/experimental-canvas-features/fast/canvas-experimental/README.txt View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTexture.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTexture.idl View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (34 generated)
Kai Ninomiya
kbr: is this what you had in mind?
3 years, 9 months ago (2017-03-14 20:38:43 UTC) #3
DaleCurtis
Hmm, don't you want the timestamp from the actual VideoFrame object?
3 years, 9 months ago (2017-03-14 20:50:16 UTC) #5
Kai Ninomiya
On 2017/03/14 20:50:16, DaleCurtis wrote: > Hmm, don't you want the timestamp from the actual ...
3 years, 9 months ago (2017-03-14 20:51:30 UTC) #6
Kai Ninomiya
On 2017/03/14 20:51:30, Kai Ninomiya wrote: > On 2017/03/14 20:50:16, DaleCurtis wrote: > > Hmm, ...
3 years, 9 months ago (2017-03-14 23:24:19 UTC) #8
DaleCurtis
No, this needs to be returned along with the paint() call or it's useless since ...
3 years, 9 months ago (2017-03-15 02:50:50 UTC) #9
Ken Russell (switch to Gerrit)
Thanks Kai, yes, this is basically what I had in mind. A comment. https://codereview.chromium.org/2749653003/diff/20001/media/blink/webmediaplayer_impl.cc File ...
3 years, 9 months ago (2017-03-15 04:41:50 UTC) #10
Kai Ninomiya
kbr, dalecurtis: updated again, WDYT?
3 years, 9 months ago (2017-03-15 21:20:18 UTC) #11
DaleCurtis
Still seems kind of roundabout, why not add some setters to the canvas object so ...
3 years, 9 months ago (2017-03-15 22:53:50 UTC) #12
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2749653003/diff/60001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2749653003/diff/60001/media/blink/webmediaplayer_impl.h#newcode459 media/blink/webmediaplayer_impl.h:459: // Updates the cached video frame info for getLastUploadedFrameInfo. ...
3 years, 9 months ago (2017-03-16 00:57:43 UTC) #13
Kai Ninomiya
https://codereview.chromium.org/2749653003/diff/60001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2749653003/diff/60001/media/blink/webmediaplayer_impl.h#newcode459 media/blink/webmediaplayer_impl.h:459: // Updates the cached video frame info for getLastUploadedFrameInfo. ...
3 years, 9 months ago (2017-03-16 22:28:25 UTC) #14
DaleCurtis
That said, as mentioned in my previous comment I think this way is funky. Instead ...
3 years, 9 months ago (2017-03-16 22:30:02 UTC) #15
Kai Ninomiya
On 2017/03/16 22:30:02, DaleCurtis wrote: > That said, as mentioned in my previous comment I ...
3 years, 9 months ago (2017-03-16 22:39:49 UTC) #16
DaleCurtis
Ah, sorry, this is using copyVideoTextureToPlatformTexture() then? Mostly my point is that instead of adding ...
3 years, 9 months ago (2017-03-16 22:47:42 UTC) #17
Ken Russell (switch to Gerrit)
On 2017/03/16 22:47:42, DaleCurtis wrote: > Ah, sorry, this is using copyVideoTextureToPlatformTexture() then? Mostly my ...
3 years, 9 months ago (2017-03-16 23:01:05 UTC) #18
DaleCurtis
I think it makes sense to hang them off nearest to wherever they're used and ...
3 years, 9 months ago (2017-03-16 23:13:21 UTC) #19
Ken Russell (switch to Gerrit)
On 2017/03/16 23:13:21, DaleCurtis wrote: > I think it makes sense to hang them off ...
3 years, 9 months ago (2017-03-16 23:29:30 UTC) #20
Kai Ninomiya
On 2017/03/16 23:29:30, Ken Russell wrote: > On 2017/03/16 23:13:21, DaleCurtis wrote: > > I ...
3 years, 9 months ago (2017-03-16 23:31:01 UTC) #21
DaleCurtis
Thanks for experimenting. Since this is behind the experimental flag I think either approach is ...
3 years, 9 months ago (2017-03-16 23:53:43 UTC) #23
Kai Ninomiya
Slightly simplified patch and moved the fields to WebGLTexture instead of HTMLVideoElement. https://codereview.chromium.org/2749653003/diff/60001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h ...
3 years, 9 months ago (2017-03-17 21:40:15 UTC) #24
Kai Ninomiya
On 2017/03/17 21:40:15, Kai Ninomiya wrote: > Slightly simplified patch and moved the fields to ...
3 years, 9 months ago (2017-03-17 21:41:54 UTC) #25
DaleCurtis
https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5288 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5288: if (video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(), Sorry, can you instead add the ...
3 years, 9 months ago (2017-03-17 21:47:52 UTC) #26
Kai Ninomiya
https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5288 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5288: if (video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(), Hm, adding it to copyVideoTextureToPlatformTexture and ...
3 years, 9 months ago (2017-03-18 01:08:58 UTC) #27
DaleCurtis
https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5288 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5288: if (video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(), On 2017/03/18 at 01:08:58, Kai Ninomiya ...
3 years, 9 months ago (2017-03-20 17:58:13 UTC) #28
Ken Russell (switch to Gerrit)
I think this minimally intrusive approach is the best one for this prototype. https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File ...
3 years, 9 months ago (2017-03-20 19:14:15 UTC) #29
DaleCurtis
media/ parts lgtm https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2749653003/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5288 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5288: if (video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(), On 2017/03/20 at ...
3 years, 9 months ago (2017-03-20 21:59:54 UTC) #30
Ken Russell (switch to Gerrit)
OK, great. Thanks Dale. Kai: can you at least add one test verifying that these ...
3 years, 9 months ago (2017-03-20 22:33:37 UTC) #31
Kai Ninomiya
On 2017/03/20 22:33:37, Ken Russell wrote: > OK, great. Thanks Dale. > > Kai: can ...
3 years, 9 months ago (2017-03-23 04:21:18 UTC) #43
Ken Russell (switch to Gerrit)
On 2017/03/23 04:21:18, Kai Ninomiya wrote: > On 2017/03/20 22:33:37, Ken Russell wrote: > > ...
3 years, 9 months ago (2017-03-23 04:39:10 UTC) #44
Kai Ninomiya
kbr, thanks. I think it's working now. PTAL
3 years, 9 months ago (2017-03-24 00:34:30 UTC) #51
Ken Russell (switch to Gerrit)
Excellent. Thanks for putting a test in place. LGTM CC'ing junov@ as an FYI about ...
3 years, 9 months ago (2017-03-24 21:47:55 UTC) #54
Kai Ninomiya
On 2017/03/24 21:47:55, Ken Russell wrote: > Excellent. Thanks for putting a test in place. ...
3 years, 9 months ago (2017-03-24 22:01:43 UTC) #55
Kai Ninomiya
esprehn: Could you PTAL at WebKit/public/platform? We're doing a very early prototype to expose some ...
3 years, 9 months ago (2017-03-24 22:05:02 UTC) #57
esprehn
On 2017/03/24 at 22:05:02, kainino wrote: > esprehn: Could you PTAL at WebKit/public/platform? We're doing ...
3 years, 9 months ago (2017-03-24 22:48:07 UTC) #59
Kai Ninomiya
On 2017/03/24 22:48:07, esprehn wrote: > On 2017/03/24 at 22:05:02, kainino wrote: > > esprehn: ...
3 years, 9 months ago (2017-03-24 23:43:34 UTC) #60
haraken
On 2017/03/24 23:43:34, Kai Ninomiya wrote: > On 2017/03/24 22:48:07, esprehn wrote: > > On ...
3 years, 9 months ago (2017-03-27 04:51:07 UTC) #61
dglazkov
I like the idea of migrating webmediaplayer_* to blink. I wouldn't block this work on ...
3 years, 9 months ago (2017-03-27 20:08:21 UTC) #62
DaleCurtis
It's not too much work just for media/blink if blink is allowed to pick up ...
3 years, 9 months ago (2017-03-27 20:11:41 UTC) #63
dglazkov
On 2017/03/27 at 20:11:41, dalecurtis wrote: > It's not too much work just for media/blink ...
3 years, 9 months ago (2017-03-27 20:19:47 UTC) #64
DaleCurtis
On 2017/03/27 at 20:19:47, dglazkov wrote: > On 2017/03/27 at 20:11:41, dalecurtis wrote: > > ...
3 years, 9 months ago (2017-03-27 20:53:30 UTC) #65
mlamouri (slow - plz ping)
lgtm with intent to implement sent and other comments applied Sorry for the delay :)
3 years, 8 months ago (2017-03-28 14:49:47 UTC) #66
Kai Ninomiya
Re: intent to implement, see below. https://codereview.chromium.org/2749653003/diff/220001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2749653003/diff/220001/media/blink/webmediaplayer_impl.cc#newcode1848 media/blink/webmediaplayer_impl.cc:1848: if (video_frame) { ...
3 years, 8 months ago (2017-03-28 21:33:23 UTC) #67
dglazkov
On 2017/03/28 at 21:33:23, kainino wrote: > No, there was not. This is an experimental ...
3 years, 8 months ago (2017-03-28 21:43:51 UTC) #68
Ken Russell (switch to Gerrit)
On 2017/03/28 21:43:51, dglazkov wrote: > On 2017/03/28 at 21:33:23, kainino wrote: > > > ...
3 years, 8 months ago (2017-03-28 21:52:46 UTC) #69
Kai Ninomiya
On 2017/03/28 21:43:51, dglazkov wrote: > On 2017/03/28 at 21:33:23, kainino wrote: > > > ...
3 years, 8 months ago (2017-03-28 21:53:19 UTC) #70
Kai Ninomiya
I2I: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/YLR3v0t8WF0
3 years, 8 months ago (2017-03-29 22:30:06 UTC) #71
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/2749653003/260001
3 years, 8 months ago (2017-03-30 00:45:30 UTC) #78
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 00:56:48 UTC) #81
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/36eeff88e474d2e562f2d656bb94...

Powered by Google App Engine
This is Rietveld 408576698