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

Issue 2859723002: Copy NV12 picture buffers on demand on the main thread. (Closed)

Created:
3 years, 7 months ago by jbauman
Modified:
3 years, 7 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy NV12 picture buffers on demand on the main thread. If the image is going to be displayed in an overlay then no copy needs to happen, because the video processor can take it directly. However if it's used in GL then it needs to be copied to a texture with the correct bind flags using the video processor. BUG=717813 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/2859723002 Cr-Commit-Position: refs/heads/master@{#475162} Committed: https://chromium.googlesource.com/chromium/src/+/a361008fed7d9652a62fb548c7ea9a89fc3d2ce5

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : bind fixes #

Patch Set 4 : unchange DEPS #

Patch Set 5 : rebase #

Patch Set 6 : fix some bugs #

Patch Set 7 : rebase #

Patch Set 8 : fix build #

Patch Set 9 : rebase #

Patch Set 10 : fix CanBindSamples #

Patch Set 11 : share video processors #

Total comments: 3

Patch Set 12 : rename DoCopyTexImageIfNeeded #

Patch Set 13 : fix build #

Total comments: 1

Patch Set 14 : connect active texture and restoring bindings #

Total comments: 1

Patch Set 15 : fix restoring binding and active texture #

Total comments: 1

Patch Set 16 : change comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -106 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +48 lines, -29 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +44 lines, -16 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M media/gpu/dxva_picture_buffer_win.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +32 lines, -2 lines 0 comments Download
M media/gpu/dxva_picture_buffer_win.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +171 lines, -21 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.h View 1 2 3 4 5 6 4 chunks +24 lines, -3 lines 0 comments Download
M media/gpu/dxva_video_decode_accelerator_win.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +83 lines, -31 lines 0 comments Download
M third_party/khronos/EGL/eglext.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/khronos/README.chromium View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_dxgi.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +33 lines, -3 lines 0 comments Download
M ui/gl/gl_image_dxgi.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +104 lines, -1 line 0 comments Download

Messages

Total messages: 76 (62 generated)
jbauman
3 years, 7 months ago (2017-05-23 22:18:16 UTC) #42
sandersd (OOO until July 31)
media changes lgtm. I have nits about the command buffer changes, but someone else should ...
3 years, 7 months ago (2017-05-23 23:23:31 UTC) #43
jbauman
zmo@: gpu/command_buffer review, please.
3 years, 7 months ago (2017-05-24 21:59:03 UTC) #53
Zhenyao Mo
https://codereview.chromium.org/2859723002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2859723002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9688 gpu/command_buffer/service/gles2_cmd_decoder.cc:9688: RestoreCurrentTextureBindings(&state_, textarget); You need to expend this to take ...
3 years, 7 months ago (2017-05-24 22:19:29 UTC) #54
jbauman
PTAL. On 2017/05/24 22:19:29, Zhenyao Mo wrote: > https://codereview.chromium.org/2859723002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > ...
3 years, 7 months ago (2017-05-25 04:18:16 UTC) #59
Zhenyao Mo
https://codereview.chromium.org/2859723002/diff/260001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2859723002/diff/260001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9679 gpu/command_buffer/service/gles2_cmd_decoder.cc:9679: glBindTexture(textarget, texture->service_id()); I am still concerned. Here we changed ...
3 years, 7 months ago (2017-05-25 17:21:58 UTC) #60
jbauman
PTAL. On 2017/05/25 17:21:58, Zhenyao Mo wrote: > https://codereview.chromium.org/2859723002/diff/260001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > ...
3 years, 7 months ago (2017-05-26 00:54:00 UTC) #63
Zhenyao Mo
LGTM Thanks https://codereview.chromium.org/2859723002/diff/280001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2859723002/diff/280001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode1927 gpu/command_buffer/service/gles2_cmd_decoder.cc:1927: // or bind happened. Can you add ...
3 years, 7 months ago (2017-05-26 01:11:07 UTC) #64
jbauman
+kbr@ for third_party/khronos OWNERS review.
3 years, 7 months ago (2017-05-26 01:35:34 UTC) #66
Zhenyao Mo
On 2017/05/26 01:35:34, jbauman wrote: > +kbr@ for third_party/khronos OWNERS review. kbr is out until ...
3 years, 7 months ago (2017-05-26 01:59:42 UTC) #67
jbauman
Ok, then +piman@ for third_party/khronos OWNERS review
3 years, 7 months ago (2017-05-26 02:00:35 UTC) #69
piman
lgtm
3 years, 7 months ago (2017-05-26 16:11:33 UTC) #70
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/2859723002/300001
3 years, 7 months ago (2017-05-26 20:24:28 UTC) #73
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 22:20:40 UTC) #76
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/a361008fed7d9652a62fb548c7ea...

Powered by Google App Engine
This is Rietveld 408576698