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

Issue 1945543002: Use explicit flush for ArcVideoAccelerator. (Closed)

Created:
4 years, 7 months ago by Owen Lin
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use explicit flush for ArcVideoAccelerator. Change to use a explicit flush() function instead of a buffer with special EOS flag. The flush handling (EOS) is different between Android and Chromium. We decide to make the ARC interface more similar to the chromium VDA interface, which calls Flush() explicitly to notify the End-Of-Stream event. BUG=b/27780242 TEST=Play video in ApiDemo in Arc Committed: https://crrev.com/cf3c4bf05a5b2f39a93455a8257f99248b6b097d Cr-Commit-Position: refs/heads/master@{#394692}

Patch Set 1 #

Total comments: 15

Patch Set 2 : address dcheng's comments #

Patch Set 3 : address review comments #

Patch Set 4 : address posciak's comments #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : update video-host version #

Patch Set 7 : rebase and update version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -66 lines) Patch
M chrome/gpu/arc_gpu_video_decode_accelerator.h View 4 chunks +1 line, -15 lines 0 comments Download
M chrome/gpu/arc_gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 6 chunks +23 lines, -38 lines 0 comments Download
M chrome/gpu/arc_video_accelerator.h View 1 2 3 4 5 6 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/gpu/gpu_arc_video_service.cc View 1 2 3 4 5 6 4 chunks +7 lines, -2 lines 0 comments Download
M components/arc/common/video.mojom View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/common/video_accelerator.mojom View 1 3 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Owen Lin
PTAL
4 years, 7 months ago (2016-05-03 03:14:59 UTC) #2
kcwu
lgtm
4 years, 7 months ago (2016-05-03 09:07:05 UTC) #3
Owen Lin
Hi dcheng@, please help to review the mojom file. Thanks.
4 years, 7 months ago (2016-05-06 05:10:30 UTC) #5
dcheng
https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode218 chrome/gpu/arc_gpu_video_decode_accelerator.cc:218: buffers_pending_import_[index].release(), true); Out of curiosity, how does this actually ...
4 years, 7 months ago (2016-05-07 06:18:11 UTC) #6
Owen Lin
https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode218 chrome/gpu/arc_gpu_video_decode_accelerator.cc:218: buffers_pending_import_[index].release(), true); On 2016/05/07 06:18:11, dcheng wrote: > Out ...
4 years, 7 months ago (2016-05-09 07:04:41 UTC) #7
Pawel Osciak
https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode213 chrome/gpu/arc_gpu_video_decode_accelerator.cc:213: if (buffers_pending_import_[index].is_valid()) { Could you please add a comment ...
4 years, 7 months ago (2016-05-09 07:27:39 UTC) #8
dcheng
https://codereview.chromium.org/1945543002/diff/1/components/arc/common/video_accelerator.mojom File components/arc/common/video_accelerator.mojom (right): https://codereview.chromium.org/1945543002/diff/1/components/arc/common/video_accelerator.mojom#newcode67 components/arc/common/video_accelerator.mojom:67: Flush@6(); On 2016/05/09 at 07:04:41, Owen Lin wrote: > ...
4 years, 7 months ago (2016-05-09 21:22:00 UTC) #9
Owen Lin
PTAL. Thanks. https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode213 chrome/gpu/arc_gpu_video_decode_accelerator.cc:213: if (buffers_pending_import_[index].is_valid()) { On 2016/05/09 07:27:38, Pawel ...
4 years, 7 months ago (2016-05-10 08:26:35 UTC) #10
Pawel Osciak
lgtm
4 years, 7 months ago (2016-05-10 09:20:43 UTC) #11
dcheng
LGTM. I think the interface looks funny, but it is what it is.
4 years, 7 months ago (2016-05-10 17:06:58 UTC) #12
dcheng
https://codereview.chromium.org/1945543002/diff/60001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/60001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode222 chrome/gpu/arc_gpu_video_decode_accelerator.cc:222: index, std::vector<gfx::GpuMemoryBufferHandle>{handle}); Also, just write {handle} here (no std::vector<gfx::GMBH>)
4 years, 7 months ago (2016-05-10 23:00:11 UTC) #13
Owen Lin
https://codereview.chromium.org/1945543002/diff/60001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1945543002/diff/60001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode222 chrome/gpu/arc_gpu_video_decode_accelerator.cc:222: index, std::vector<gfx::GpuMemoryBufferHandle>{handle}); On 2016/05/10 23:00:11, dcheng wrote: > Also, ...
4 years, 7 months ago (2016-05-11 01:49:57 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945543002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945543002/80001
4 years, 7 months ago (2016-05-11 01:51:21 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 02:36:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945543002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945543002/120001
4 years, 7 months ago (2016-05-19 05:23:53 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-19 06:11:30 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 06:12:55 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cf3c4bf05a5b2f39a93455a8257f99248b6b097d
Cr-Commit-Position: refs/heads/master@{#394692}

Powered by Google App Engine
This is Rietveld 408576698