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

Issue 2763223003: Reland of cc: Don't use StreamVideoDrawQuad on any platform but Android. (Closed)

Created:
3 years, 9 months ago by Daniele Castagna
Modified:
3 years, 6 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, inactive_dshwang_plz_cc_intel, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Don't use StreamVideoDrawQuad on any platform but Android. VideoLayerImpl is appending StreamVideoDrawQuads on CrOS. StreamVideoDrawQuads should be used on Android since almost all its features are supported by TextureDrawQuad. The only difference is that StreamVideoDrawQuad calls glUniformMatrix4fvStreamTextureMatrixCHROMIUM before drawing, that just sets a uniform matrix on CrOS. This CL makes sure VideoLayerImpl produces StreamVideoDrawQuads only on Android. BUG=702750 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2763223003 Cr-Original-Commit-Position: refs/heads/master@{#460547} Committed: https://chromium.googlesource.com/chromium/src/+/517d0115d3c435383f79a0b730b6514a6cc97f44 Review-Url: https://codereview.chromium.org/2763223003 Cr-Commit-Position: refs/heads/master@{#481624} Committed: https://chromium.googlesource.com/chromium/src/+/a7cd47aa097a96ee6c54d6af087f57767b3a401e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Dana's comments. Fix unittest. #

Total comments: 4

Patch Set 3 : Address danakj comments. Add unittest. #

Patch Set 4 : Use premultiplied for RGBA. #

Patch Set 5 : Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -73 lines) Patch
M cc/layers/video_layer_impl.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M cc/layers/video_layer_impl_unittest.cc View 1 2 3 4 1 chunk +0 lines, -40 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 2 chunks +10 lines, -7 lines 0 comments Download
M cc/resources/video_resource_updater.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 3 chunks +12 lines, -8 lines 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 2 3 4 15 chunks +61 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 51 (31 generated)
Daniele Castagna
3 years, 9 months ago (2017-03-22 06:55:41 UTC) #6
reveman
lgtm as it's really confusing that we use this code on cros
3 years, 9 months ago (2017-03-22 07:00:49 UTC) #8
Daniele Castagna
Dongseong, FYI: it seems like we might have been using the wrong DrawQuad for videos ...
3 years, 9 months ago (2017-03-22 07:02:32 UTC) #9
danakj
https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc#newcode48 cc/resources/video_resource_updater.cc:48: #if defined(OS_ANDROID) Please don't write OS defines inside cc. ...
3 years, 9 months ago (2017-03-22 14:44:23 UTC) #13
danakj
https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc#newcode48 cc/resources/video_resource_updater.cc:48: #if defined(OS_ANDROID) On 2017/03/22 14:44:23, danakj wrote: > Please ...
3 years, 9 months ago (2017-03-22 14:47:04 UTC) #14
Daniele Castagna
On 2017/03/22 at 14:47:04, danakj wrote: > https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc > File cc/resources/video_resource_updater.cc (right): > > https://codereview.chromium.org/2763223003/diff/1/cc/resources/video_resource_updater.cc#newcode48 ...
3 years, 9 months ago (2017-03-24 02:25:28 UTC) #18
danakj
On Thu, Mar 23, 2017 at 10:25 PM, <dcastagna@chromium.org> wrote: > On 2017/03/22 at 14:47:04, ...
3 years, 9 months ago (2017-03-24 14:51:34 UTC) #21
Daniele Castagna
On 2017/03/24 at 14:51:34, danakj wrote: > On Thu, Mar 23, 2017 at 10:25 PM, ...
3 years, 9 months ago (2017-03-27 13:46:02 UTC) #23
danakj
LGTM https://codereview.chromium.org/2763223003/diff/20001/cc/resources/video_resource_updater.h File cc/resources/video_resource_updater.h (right): https://codereview.chromium.org/2763223003/diff/20001/cc/resources/video_resource_updater.h#newcode78 cc/resources/video_resource_updater.h:78: bool use_stream_video_draw_quad = false); i would prefer not ...
3 years, 8 months ago (2017-03-28 15:44:13 UTC) #24
Daniele Castagna
The media team confirmed StreamVideoDrawQuad is still needed on Android. +avi for ownership on content/* ...
3 years, 8 months ago (2017-03-29 20:38:18 UTC) #28
Avi (use Gerrit)
lgtm stampity stamp
3 years, 8 months ago (2017-03-29 20:41:40 UTC) #29
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/2763223003/40001
3 years, 8 months ago (2017-03-29 22:00:47 UTC) #34
danakj
Thanks for the test!
3 years, 8 months ago (2017-03-29 22:03:05 UTC) #35
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/517d0115d3c435383f79a0b730b6514a6cc97f44
3 years, 8 months ago (2017-03-29 22:08:25 UTC) #38
Pawel Osciak
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2920893003/ by posciak@chromium.org. ...
3 years, 6 months ago (2017-06-02 00:05:09 UTC) #39
Daniele Castagna
On 2017/06/02 at 00:05:09, posciak wrote: > A revert of this CL (patchset #3 id:40001) ...
3 years, 6 months ago (2017-06-22 16:05:27 UTC) #40
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/2763223003/60001
3 years, 6 months ago (2017-06-22 16:05:47 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/205611)
3 years, 6 months ago (2017-06-22 16:53:20 UTC) #45
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/2763223003/80001
3 years, 6 months ago (2017-06-22 18:04:28 UTC) #48
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 19:23:39 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a7cd47aa097a96ee6c54d6af087f...

Powered by Google App Engine
This is Rietveld 408576698