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

Issue 1413833006: Reland of "webgl: optimize webgl.texSubImage2D(video) path." (Closed)

Created:
5 years, 1 month ago by dshwang
Modified:
5 years, 1 month ago
CC:
chromium-reviews, posciak+watch_chromium.org, eric.carlson_apple.com, mlamouri+watch-media_chromium.org, rwlbuis, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-html_chromium.org, jam, Justin Novosad, danakj, blink-reviews-platform-graphics_chromium.org, dglazkov+blink, Rik, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, vmpstr+blinkwatch_chromium.org, philipj_slow, jbroman, feature-media-reviews_chromium.org, krit, piman+watch_chromium.org, mlamouri+watch-blink_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, f(malita), mkwst+moarreviews-renderer_chromium.org, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of "webgl: optimize webgl.texSubImage2D(video) path." Original CL: https://codereview.chromium.org/1315323006/ Revert: https://codereview.chromium.org/1418513016 Reason for revert: Reverting to address webgl_conformance_tests break in: https://build.chromium.org/p/chromium.gpu/builders/Android%20Debug%20%28Nexus%209%29/builds/3534 Reason for reland: There is a bug in glCopySubTextureCHROMIUM extension. GLES2DecoderImpl::DoCopySubTextureCHROMIUM/DoCompressedCopySubTextureCHROMIUM uses ValidForTexture to check dimensions of source texture. If the source texture is backed by GL Image, the decoder can report false positive error. This CL doesn't use Texture::ValidForTexture() for GL Image. TEST=WebglConformance.conformance_textures_video_tex_image_and_sub_image_2d_with_video_* BUG=349871, 504773, 549531 Committed: https://crrev.com/7c26f04cf12c2c72fdab8e4764faf9305724c7ee Cr-Commit-Position: refs/heads/master@{#357100}

Patch Set 1 #

Patch Set 2 : fold glCopySubTextureCHROMIUM bug fix into this CL #

Total comments: 5

Patch Set 3 : Add TODO comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -111 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 chunk +1 line, -5 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 3 chunks +21 lines, -10 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 chunk +1 line, -5 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 2 chunks +13 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 5 chunks +16 lines, -12 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 2 chunks +13 lines, -7 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.h View 1 chunk +24 lines, -5 lines 0 comments Download
M media/renderers/skcanvas_video_renderer.cc View 4 chunks +42 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 4 chunks +58 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 2 chunks +26 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp View 1 chunk +17 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 chunk +25 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
dshwang
The original CL was reverted due to a bug in glCopySubTextureCHROMIUM. As https://codereview.chromium.org/1417913004/ is fixing ...
5 years, 1 month ago (2015-10-28 19:42:56 UTC) #5
Ken Russell (switch to Gerrit)
I think you should fold https://codereview.chromium.org/1417913004/ into this as patch set 2. It can be ...
5 years, 1 month ago (2015-10-28 22:27:39 UTC) #6
DaleCurtis
Once the other CL lands you can just 1-click revert the other revert if you ...
5 years, 1 month ago (2015-10-28 22:28:31 UTC) #7
DaleCurtis
Or what kbr@ said :) I don't have a strong preference.
5 years, 1 month ago (2015-10-28 22:28:56 UTC) #8
Ken Russell (switch to Gerrit)
To be clear, I don't have a strong preference either, though we have had enough ...
5 years, 1 month ago (2015-10-28 22:30:18 UTC) #9
dshwang
Thank you for many comments. Could you review again? DaleCurtis, media/, and content/ zmo, gpu/ ...
5 years, 1 month ago (2015-10-29 09:18:09 UTC) #12
philipj_slow
third_party/WebKit/public/platform/WebMediaPlayer.h lgtm
5 years, 1 month ago (2015-10-29 10:22:37 UTC) #13
DaleCurtis
media/ lgtm https://codereview.chromium.org/1413833006/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1413833006/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode637 content/renderer/media/android/webmediaplayer_android.cc:637: (bitmap_.getTexture())->getTextureHandle()); alignment seems wrong, git cl format?
5 years, 1 month ago (2015-10-29 15:58:33 UTC) #14
dshwang
Thank you for reviewing! zmo, piman, could you review? gpu/command_buffer/service/gles2_cmd_decoder.cc https://codereview.chromium.org/1413833006/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1413833006/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode637 ...
5 years, 1 month ago (2015-10-29 17:44:46 UTC) #15
Zhenyao Mo
gpu/command_buffer lgtm
5 years, 1 month ago (2015-10-29 23:40:07 UTC) #16
piman
https://codereview.chromium.org/1413833006/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1413833006/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13212 gpu/command_buffer/service/gles2_cmd_decoder.cc:13212: On 2015/10/29 09:18:09, dshwang wrote: > As kbr reviewed, ...
5 years, 1 month ago (2015-10-30 00:16:30 UTC) #17
dshwang
Thank you for reviewing! I'll get gles2 cmd decoder more secured in https://code.google.com/p/chromium/issues/detail?id=549531 https://codereview.chromium.org/1413833006/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
5 years, 1 month ago (2015-10-30 11:06:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413833006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413833006/40001
5 years, 1 month ago (2015-10-30 11:57:16 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-30 14:42:50 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/7c26f04cf12c2c72fdab8e4764faf9305724c7ee Cr-Commit-Position: refs/heads/master@{#357100}
5 years, 1 month ago (2015-10-30 14:43:33 UTC) #24
piman
On 2015/10/30 11:06:28, dshwang wrote: > Thank you for reviewing! > I'll get gles2 cmd ...
5 years, 1 month ago (2015-10-30 17:53:35 UTC) #25
Zhenyao Mo
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1420843005/ by zmo@chromium.org. ...
5 years, 1 month ago (2015-10-30 18:22:55 UTC) #26
Zhenyao Mo
It also broke WebglConformance.conformance2_textures_video_tex_image_and_sub_image_2d_with_video* on GPU FYI windows bots
5 years, 1 month ago (2015-10-30 18:26:45 UTC) #27
rjkroege
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1421873005/ by rjkroege@chromium.org. ...
5 years, 1 month ago (2015-10-30 19:01:15 UTC) #28
dshwang
5 years, 1 month ago (2015-11-02 08:58:22 UTC) #29
Message was sent while issue was closed.
sorry for hassle
I'll fix copySubTextureChromium first and then try to re-land it.
copySubTextureChromium CL would be too big to be merged with this CL.

Powered by Google App Engine
This is Rietveld 408576698