VAVDA: Cleanups and fixes.
This CL does some cleanups and fixes: - Destroy vaapi buffers after we're done drawing.If we do this before we're done drawing, the memory can be reclaimed by other threads in the meantime and result in interesting use-after-free bugs. - Don't leak buffers when we go through the error path. - Don't leak buffers when we Reset(). - Fix a small indentation. BUG=chromium-os:33170,chromium:139755 TEST=by hand Change-Id: Icd44bd52c5b6c8f32d904ad2980d19a090f01e38 Review URL: https://chromiumcodereview.appspot.com/10843058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150010 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment