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

Issue 1278523005: Ozone: Keep the native pixmap alive till gl_image is destroyed (Closed)

Created:
5 years, 4 months ago by kalyank
Modified:
5 years, 4 months ago
CC:
chromium-reviews, piman+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ozone: Keep the native pixmap alive till gl_image is destroyed While testing with support for HW Overlays enabled and playing video, I observed that browser crashes when you refresh the tab or try to close the window (Debug builds). This was the sequence: 1)GLImage is scheduled to be displayed with GLSurfaceOzone.(HandleScheduleOverlayPlaneCHROMIUM) 2)If the page is refreshed, we start releasing the resources of Video and VaapiDrmPicture calls destroy on the GLImage. 3)In the swapbuffer request, surfaceOzone tries to use the GLImage to display the buffer on screen but the pixmap_is not valid anymore as it has been destroyed in step 2 above. (We hit the DCHECK in GLImageOzoneNativePixmap::ScheduleOverlayPlane) Now, we release only EGL resources during Destroy call while keeping around NativePixmap till ImageOzoneNativePixmap is alive. BUG= Committed: https://crrev.com/862a9d9c5b475b05b6bb1741f782b8459967591e Cr-Commit-Position: refs/heads/master@{#342280}

Patch Set 1 #

Patch Set 2 : Missing changes #

Patch Set 3 : Release Pixmap only in Destructor #

Patch Set 4 : Remove un-needed changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M ui/gl/gl_image_ozone_native_pixmap.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
kalyank
@piman I was thinking if it would be better to guarantee that the native pixmap ...
5 years, 4 months ago (2015-08-06 08:00:24 UTC) #2
alexst (slow to review)
On 2015/08/06 08:00:24, kalyank wrote: > @piman I was thinking if it would be better ...
5 years, 4 months ago (2015-08-06 11:50:24 UTC) #3
kalyank
On 2015/08/06 11:50:24, alexst wrote: > On 2015/08/06 08:00:24, kalyank wrote: > > @piman I ...
5 years, 4 months ago (2015-08-06 15:19:13 UTC) #4
kalyank
5 years, 4 months ago (2015-08-06 15:20:36 UTC) #5
piman
lgtm
5 years, 4 months ago (2015-08-06 20:20:21 UTC) #6
kalyank
On 2015/08/06 20:20:21, piman (Very slow to review) wrote: > lgtm @alexst, Is this what ...
5 years, 4 months ago (2015-08-06 22:08:54 UTC) #7
alexst (slow to review)
yep, lgtm
5 years, 4 months ago (2015-08-06 22:10:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278523005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278523005/60001
5 years, 4 months ago (2015-08-07 01:39:09 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-07 03:05:41 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 03:06:32 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/862a9d9c5b475b05b6bb1741f782b8459967591e
Cr-Commit-Position: refs/heads/master@{#342280}

Powered by Google App Engine
This is Rietveld 408576698