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

Issue 11076009: OVDA: Perform an egl sync before reusing a texture. (Closed)

Created:
8 years, 2 months ago by Pawel Osciak
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Visibility:
Public.

Description

OVDA: Perform an EGL sync before reusing a texture. When a texture is returned via ReusePictureBuffer(), we know that it has been inserted into command stream, but it may not have been read out yet. This inserts an EGL sync object into the GPU command stream. All commands that have already been in the stream at the time of insertion are finished when the object is signaled, thus guaranteeing that the commands to read out the texture have been finished. The texture will be reused for decoding after the object has been signaled. BUG=155602 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161759

Patch Set 1 #

Patch Set 2 : LOG()->DLOG() #

Total comments: 14

Patch Set 3 : #

Total comments: 20

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -2 lines) Patch
M content/common/gpu/media/omx_video_decode_accelerator.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.cc View 1 2 3 4 5 6 chunks +89 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Pawel Osciak
8 years, 2 months ago (2012-10-06 01:43:25 UTC) #1
Ami GONE FROM CHROMIUM
I don't like paying the extra thread per decoder for this. How long do these ...
8 years, 2 months ago (2012-10-06 04:42:43 UTC) #2
piman
https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode42 content/common/gpu/media/omx_video_decode_accelerator.cc:42: eglGetProcAddress("eglCreateSyncKHR")); No static initialization. Realize that this code runs ...
8 years, 2 months ago (2012-10-06 06:42:40 UTC) #3
sheu
https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode416 content/common/gpu/media/omx_video_decode_accelerator.cc:416: EGLSyncKHR egl_sync_obj = egl_create_sync_khr(egl_display_, I'd be concerned about this ...
8 years, 2 months ago (2012-10-06 21:54:53 UTC) #4
sheu
https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode416 content/common/gpu/media/omx_video_decode_accelerator.cc:416: EGLSyncKHR egl_sync_obj = egl_create_sync_khr(egl_display_, I meant: "if you eventually ...
8 years, 2 months ago (2012-10-06 21:56:00 UTC) #5
Pawel Osciak
https://chromiumcodereview.appspot.com/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/11076009/diff/3001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode42 content/common/gpu/media/omx_video_decode_accelerator.cc:42: eglGetProcAddress("eglCreateSyncKHR")); On 2012/10/06 06:42:40, piman wrote: > No static ...
8 years, 2 months ago (2012-10-10 17:37:51 UTC) #6
Pawel Osciak
8 years, 2 months ago (2012-10-12 16:30:29 UTC) #7
Ami GONE FROM CHROMIUM
I like this version *much* better! https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode400 content/common/gpu/media/omx_video_decode_accelerator.cc:400: bool Create(EGLDisplay egl_display); ...
8 years, 2 months ago (2012-10-12 17:20:05 UTC) #8
Pawel Osciak
https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode400 content/common/gpu/media/omx_video_decode_accelerator.cc:400: bool Create(EGLDisplay egl_display); On 2012/10/12 17:20:05, Ami Fischman wrote: ...
8 years, 2 months ago (2012-10-12 17:50:50 UTC) #9
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode400 content/common/gpu/media/omx_video_decode_accelerator.cc:400: bool Create(EGLDisplay egl_display); On 2012/10/12 17:50:50, posciak wrote: > ...
8 years, 2 months ago (2012-10-12 17:57:28 UTC) #10
Pawel Osciak
https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode400 content/common/gpu/media/omx_video_decode_accelerator.cc:400: bool Create(EGLDisplay egl_display); On 2012/10/12 17:57:28, Ami Fischman wrote: ...
8 years, 2 months ago (2012-10-12 18:39:28 UTC) #11
Ami GONE FROM CHROMIUM
LGTM % nits https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/17001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode481 content/common/gpu/media/omx_video_decode_accelerator.cc:481: picture_buffer_id, base::Passed(egl_sync_obj.Pass())), On 2012/10/12 18:39:28, posciak ...
8 years, 2 months ago (2012-10-12 19:34:45 UTC) #12
piman
https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode393 content/common/gpu/media/omx_video_decode_accelerator.cc:393: class OmxVideoDecodeAccelerator::PictureSyncObject { nit: we usually don't define inner ...
8 years, 2 months ago (2012-10-12 19:37:10 UTC) #13
piman
(LGTM with nits addressed)
8 years, 2 months ago (2012-10-12 19:37:27 UTC) #14
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode423 content/common/gpu/media/omx_video_decode_accelerator.cc:423: EGLint value; On 2012/10/12 19:37:10, piman wrote: > nit: ...
8 years, 2 months ago (2012-10-12 19:43:55 UTC) #15
piman
On Fri, Oct 12, 2012 at 12:43 PM, <fischman@chromium.org> wrote: > > https://codereview.chromium.**org/11076009/diff/22001/** > content/common/gpu/media/omx_**video_decode_accelerator.cc<https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc> ...
8 years, 2 months ago (2012-10-12 19:59:51 UTC) #16
Ami GONE FROM CHROMIUM
> nit: = 0 >> >> OOC: Why? > > Initialize variables? > If there ...
8 years, 2 months ago (2012-10-12 20:03:51 UTC) #17
piman
On Fri, Oct 12, 2012 at 1:03 PM, Ami Fischman <fischman@chromium.org> wrote: > > nit: ...
8 years, 2 months ago (2012-10-12 20:05:29 UTC) #18
Ami GONE FROM CHROMIUM
On Fri, Oct 12, 2012 at 1:05 PM, Antoine Labour <piman@chromium.org> wrote: > -> chromium-dev ...
8 years, 2 months ago (2012-10-12 20:08:46 UTC) #19
piman
On Fri, Oct 12, 2012 at 1:08 PM, Ami Fischman <fischman@chromium.org> wrote: > On Fri, ...
8 years, 2 months ago (2012-10-12 20:30:06 UTC) #20
Pawel Osciak
https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode393 content/common/gpu/media/omx_video_decode_accelerator.cc:393: class OmxVideoDecodeAccelerator::PictureSyncObject { On 2012/10/12 19:37:10, piman wrote: > ...
8 years, 2 months ago (2012-10-12 20:33:08 UTC) #21
Pawel Osciak
https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://codereview.chromium.org/11076009/diff/22001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode423 content/common/gpu/media/omx_video_decode_accelerator.cc:423: EGLint value; On 2012/10/12 20:33:08, posciak wrote: > On ...
8 years, 2 months ago (2012-10-12 20:34:53 UTC) #22
Pawel Osciak
All fixed now hopefully.
8 years, 2 months ago (2012-10-12 20:36:36 UTC) #23
piman
lgtm
8 years, 2 months ago (2012-10-12 20:37:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/posciak@chromium.org/11076009/26004
8 years, 2 months ago (2012-10-12 20:41:03 UTC) #25
commit-bot: I haz the power
8 years, 2 months ago (2012-10-13 16:15:10 UTC) #26
Change committed as 161759

Powered by Google App Engine
This is Rietveld 408576698