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

Issue 271163002: aw: Fix lost invalidate while playing video (Closed)

Created:
6 years, 7 months ago by boliu
Modified:
6 years, 7 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

aw: Fix lost invalidate while playing video BrowserViewRenderer::block_invalidates_ needs to be unset immediately after draw. Posting the unset to UI thread could imply that it comes after the fallback tick, which can cause an invalidate to be dropped. This is especially bad for VideoLayer since the fallback tick does not advance video frames, which means the video could be stuck forever. Fix by unsetting block_invalidates_ and cancelling fallback tick immediately, but only post back to get the invalidate. Internal bug b/14643271 BUG=374905 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270101

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M android_webview/browser/browser_view_renderer.cc View 1 2 2 chunks +18 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
boliu
6 years, 7 months ago (2014-05-09 16:36:13 UTC) #1
Ignacio Solla
lgtm
6 years, 7 months ago (2014-05-12 10:39:57 UTC) #2
boliu
+mkosiba for commiter stamp
6 years, 7 months ago (2014-05-12 14:02:39 UTC) #3
mkosiba (inactive)
https://codereview.chromium.org/271163002/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/271163002/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode719 android_webview/browser/browser_view_renderer.cc:719: fallback_tick_.Cancel(); this doesn't look threadsafe: from base/cancellable_callback.h "CancelableCallback objects ...
6 years, 7 months ago (2014-05-12 14:29:51 UTC) #4
boliu
https://codereview.chromium.org/271163002/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/271163002/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode719 android_webview/browser/browser_view_renderer.cc:719: fallback_tick_.Cancel(); On 2014/05/12 14:29:51, mkosiba wrote: > this doesn't ...
6 years, 7 months ago (2014-05-12 15:34:49 UTC) #5
boliu
PTAL btw..
6 years, 7 months ago (2014-05-12 16:25:21 UTC) #6
boliu
Please cq this if you think it's good to go
6 years, 7 months ago (2014-05-13 05:54:45 UTC) #7
mkosiba (inactive)
lgtm
6 years, 7 months ago (2014-05-13 08:43:29 UTC) #8
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 7 months ago (2014-05-13 08:43:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/271163002/40001
6 years, 7 months ago (2014-05-13 08:43:56 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 12:07:10 UTC) #11
boliu
The CQ bit was unchecked by boliu@chromium.org
6 years, 7 months ago (2014-05-13 13:46:02 UTC) #12
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 7 months ago (2014-05-13 13:48:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/271163002/40001
6 years, 7 months ago (2014-05-13 13:48:48 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 15:17:34 UTC) #15
Message was sent while issue was closed.
Change committed as 270101

Powered by Google App Engine
This is Rietveld 408576698