render: properly release rendered buffers (#9807)
* cleanup eglSync * properly release buffers in renderer * add renderingDoneCallback and use it in screencopy * use static constructor for CEGLSync
This commit is contained in:
parent
5d005f11fa
commit
2ee5118d7a
14 changed files with 119 additions and 161 deletions
|
|
@ -105,10 +105,8 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(UP<CWpLinuxDrmSyncobjSurf
|
|||
surface->pending.acquire = pendingAcquire;
|
||||
pendingAcquire = {};
|
||||
|
||||
surface->pending.buffer.release = pendingRelease;
|
||||
pendingRelease = {};
|
||||
|
||||
surface->pending.buffer->syncReleaser = surface->pending.buffer.release.createSyncRelease();
|
||||
surface->pending.buffer->addReleasePoint(pendingRelease);
|
||||
pendingRelease = {};
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue