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

Issue 269913002: aw: Fix invalidate getting lost (Closed)

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

Description

aw: Fix invalidate getting lost An invalidate could be lost in this case: * SetNeedsContinuousInvalidate starts out as true * Functor happens on render thread, and SetNeedsContinuousInvalidate goes false, but because we are on render thread, this is posted back to UI thread * Before the task runs on UI, compositor SetNeedsContinuousInvalidate to true again, since the value is already true, this is a no-op, but we should really be invalidating now * The posted task runs and SetNeedsContinuousInvalidate to false, and we just lost an invalidate Fix by updating the value with a lock and only post for the invalidate. This avoids the race causing early out in SetNeedsContinuousInvalidate. For internal b/13979752 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268258

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -23 lines) Patch
M android_webview/browser/browser_view_renderer.h View 2 chunks +6 lines, -3 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 5 chunks +24 lines, -20 lines 3 comments Download

Messages

Total messages: 8 (0 generated)
boliu
pls cq after review
6 years, 7 months ago (2014-05-04 19:55:19 UTC) #1
boliu
-> sgurun for pst time zone :)
6 years, 7 months ago (2014-05-05 16:08:13 UTC) #2
sgurun-gerrit only
https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc#newcode420 android_webview/browser/browser_view_renderer.cc:420: Please add explanation here why you need to set ...
6 years, 7 months ago (2014-05-05 17:11:00 UTC) #3
boliu
https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc#newcode420 android_webview/browser/browser_view_renderer.cc:420: On 2014/05/05 17:11:01, sgurun wrote: > Please add explanation ...
6 years, 7 months ago (2014-05-05 17:13:41 UTC) #4
sgurun-gerrit only
lgtm https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/269913002/diff/1/android_webview/browser/browser_view_renderer.cc#newcode420 android_webview/browser/browser_view_renderer.cc:420: On 2014/05/05 17:13:41, boliu wrote: > On 2014/05/05 ...
6 years, 7 months ago (2014-05-05 17:24:52 UTC) #5
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 7 months ago (2014-05-05 17:26:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/269913002/1
6 years, 7 months ago (2014-05-05 17:27:22 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-05 20:27:52 UTC) #8
Message was sent while issue was closed.
Change committed as 268258

Powered by Google App Engine
This is Rietveld 408576698