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

Issue 13620008: Enable 2D Canvas painting for Chrome on Android. (Closed)

Created:
7 years, 8 months ago by hkuang
Modified:
7 years, 8 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable video painting on Canvas for Chrome on Android. This change should land after another patch landing in https://codereview.chromium.org/13685002. BUG=147265 TEST=visited the following site: http://html5doctor.com/demos/video-canvas-magic/demo1.html Visit http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_drawimage_video. Change different parameters of the canvas and video. Compare the result between desktop chrome and android chrome to see if video painting results are the same. Canvas 500X400 ctx.drawImage(v,60,60,320,176) PASS Canvas 500X400 ctx.drawImage(v,0,0,320,176) PASS Canvas 200X100 ctx.drawImage(v,0,0,320,176) PASS Canvas 200X100 ctx.drawImage(v,50,50,320,176) PASS Canvas 500X400 ctx.drawImage(v,0,0,30,30,5,5,260,125) PASS Canvas 500X400 ctx.drawImage(v,0,0) PASS Canvas 600x700 ctx.drawImage(v,90,90,80,80,100,100,260,125) PASS TODO: More complex and mixed 2D Canvas operation to see if the painting result is right(Need to learn some more JS for that). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194785

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressing Frank's comments. #

Total comments: 8

Patch Set 3 : Addressing Gregg's comments. #

Patch Set 4 : Addressing Min's comments. #

Total comments: 11

Patch Set 5 : Addressing scherkus's comments. #

Total comments: 4

Patch Set 6 : Rebase and addressing xhwang's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -10 lines) Patch
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 4 chunks +29 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 1 chunk +32 lines, -9 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.cc View 1 2 3 4 5 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
hkuang
PTAL
7 years, 8 months ago (2013-04-04 19:39:45 UTC) #1
fgalligan1
Is there a unittest that can be run already or added to test this change? ...
7 years, 8 months ago (2013-04-04 20:38:10 UTC) #2
hkuang
PTAL. https://codereview.chromium.org/13620008/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h (right): https://codereview.chromium.org/13620008/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h#newcode37 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h:37: GLenum source_target, GLenum dest_target, On 2013/04/04 20:38:10, fgalligan1 ...
7 years, 8 months ago (2013-04-04 22:56:45 UTC) #3
fgalligan1
On 2013/04/04 22:56:45, hkuang wrote: > PTAL. > > https://codereview.chromium.org/13620008/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h > File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h (right): > ...
7 years, 8 months ago (2013-04-04 23:11:49 UTC) #4
hkuang
PTAL.
7 years, 8 months ago (2013-04-05 00:32:44 UTC) #5
qinmin
+gman
7 years, 8 months ago (2013-04-05 17:33:30 UTC) #6
Ken Russell (switch to Gerrit)
This LGTM but Gregg should review it.
7 years, 8 months ago (2013-04-05 22:44:45 UTC) #7
qinmin
https://codereview.chromium.org/13620008/diff/6001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/13620008/diff/6001/webkit/media/android/webmediaplayer_android.cc#newcode258 webkit/media/android/webmediaplayer_android.cc:258: uint32 source_texture = texture_id_; if texture_id_ is 0, return ...
7 years, 8 months ago (2013-04-07 21:52:29 UTC) #8
greggman
https://chromiumcodereview.appspot.com/13620008/diff/6001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://chromiumcodereview.appspot.com/13620008/diff/6001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode57 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:57: uniform mat4 matrix; nit: we've tried to have uniforms ...
7 years, 8 months ago (2013-04-08 17:29:47 UTC) #9
hkuang
Hi, Gregg Could you take another look? https://codereview.chromium.org/13620008/diff/6001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://codereview.chromium.org/13620008/diff/6001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode57 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:57: uniform mat4 ...
7 years, 8 months ago (2013-04-09 00:49:54 UTC) #10
hkuang1
Add scherkus. Hi, Andrew Could you review the change in the webmediaplayer_android? Thanks.
7 years, 8 months ago (2013-04-09 21:55:22 UTC) #11
hkuang
https://codereview.chromium.org/13620008/diff/6001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/13620008/diff/6001/webkit/media/android/webmediaplayer_android.cc#newcode258 webkit/media/android/webmediaplayer_android.cc:258: uint32 source_texture = texture_id_; On 2013/04/07 21:52:29, qinmin wrote: ...
7 years, 8 months ago (2013-04-09 21:55:45 UTC) #12
scherkus (not reviewing)
What's our automated testing story for this change? I believe there are existing video-to-canvas layout ...
7 years, 8 months ago (2013-04-10 00:05:08 UTC) #13
hkuang1
Hi, Andrew PTAL. The only layout test I could find is video-canvas-source.html. This one is ...
7 years, 8 months ago (2013-04-10 01:32:35 UTC) #14
hkuang1
Sorry for the typo. Should be "after several milliseconds" not "million seconds".
7 years, 8 months ago (2013-04-10 01:37:28 UTC) #15
greggman
lgtm
7 years, 8 months ago (2013-04-10 16:51:41 UTC) #16
xhwang
lgtm on wmpa.* with comments https://chromiumcodereview.appspot.com/13620008/diff/32001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/13620008/diff/32001/webkit/media/android/webmediaplayer_android.cc#newcode260 webkit/media/android/webmediaplayer_android.cc:260: // The video is ...
7 years, 8 months ago (2013-04-16 17:51:35 UTC) #17
scherkus (not reviewing)
lgtm can you prepare a change to either: a) modify the test to make it ...
7 years, 8 months ago (2013-04-17 19:36:23 UTC) #18
hkuang1
https://chromiumcodereview.appspot.com/13620008/diff/32001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/13620008/diff/32001/webkit/media/android/webmediaplayer_android.cc#newcode260 webkit/media/android/webmediaplayer_android.cc:260: // The video is stored in a unmultiplied format, ...
7 years, 8 months ago (2013-04-18 01:05:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hkuang@chromium.org/13620008/39001
7 years, 8 months ago (2013-04-18 03:09:45 UTC) #20
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 05:41:38 UTC) #21
Message was sent while issue was closed.
Change committed as 194785

Powered by Google App Engine
This is Rietveld 408576698