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

Issue 498623002: aw: Avoid uncontrolled video context destruction (Closed)

Created:
6 years, 4 months ago by boliu
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

aw: Avoid uncontrolled video context destruction Since r289474, the sync factory nulls out the video context which means the destruction is uncontrolled. Context destruction is synchronous, so can cause deadlocks if there are not webviews attached to view tree to run GL. This is a rewrite of r289474 that just returns null VideoContextProvider if no webview is ready to use it. But still hold on to the reference to the context to avoid destruction. BUG=403882 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291527

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -12 lines) Patch
M content/browser/android/in_process/synchronous_compositor_factory_impl.cc View 2 chunks +10 lines, -12 lines 4 comments Download

Messages

Total messages: 13 (0 generated)
boliu
ptal
6 years, 4 months ago (2014-08-22 17:14:20 UTC) #1
boliu
On 2014/08/22 17:14:20, boliu wrote: > ptal And my bad for not thinking about this ...
6 years, 4 months ago (2014-08-22 17:23:14 UTC) #2
hush (inactive)
On 2014/08/22 17:23:14, boliu wrote: > On 2014/08/22 17:14:20, boliu wrote: > > ptal > ...
6 years, 4 months ago (2014-08-22 17:45:30 UTC) #3
boliu
On 2014/08/22 17:45:30, hush wrote: > On 2014/08/22 17:23:14, boliu wrote: > > On 2014/08/22 ...
6 years, 4 months ago (2014-08-22 17:46:05 UTC) #4
hush (inactive)
https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode250 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:250: scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>(); can we just return null here?
6 years, 4 months ago (2014-08-22 17:49:38 UTC) #5
boliu
https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode250 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:250: scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>(); On 2014/08/22 17:49:38, hush wrote: > can we ...
6 years, 4 months ago (2014-08-22 17:54:17 UTC) #6
boliu
https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode250 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:250: scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>(); On 2014/08/22 17:54:17, boliu wrote: > On 2014/08/22 ...
6 years, 4 months ago (2014-08-22 18:14:30 UTC) #7
hush (inactive)
https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc File content/browser/android/in_process/synchronous_compositor_factory_impl.cc (right): https://codereview.chromium.org/498623002/diff/1/content/browser/android/in_process/synchronous_compositor_factory_impl.cc#newcode250 content/browser/android/in_process/synchronous_compositor_factory_impl.cc:250: scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>(); alright. lgtm sorry that I broke this thing... ...
6 years, 4 months ago (2014-08-22 18:26:43 UTC) #8
boliu
Daniel? :p
6 years, 4 months ago (2014-08-22 18:50:28 UTC) #9
no sievers
lgtm
6 years, 4 months ago (2014-08-22 21:03:34 UTC) #10
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 4 months ago (2014-08-22 21:06:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/498623002/1
6 years, 4 months ago (2014-08-22 21:07:40 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 22:17:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (1) as 291527

Powered by Google App Engine
This is Rietveld 408576698