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

Issue 2060153002: Have CanvasAsyncBlobCreator speculative idle tasks keep a weak 'this'. (Closed)

Created:
4 years, 6 months ago by sof
Modified:
4 years, 6 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, Justin Novosad, dglazkov+blink, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have CanvasAsyncBlobCreator speculative idle tasks keep a weak 'this'. If image encoding should be attempted done via idle tasks, CanvasAsyncBlobCreator schedules an idle task along with a delayed task on the main thread to check if the idle task has been scheduled before too long. If not, the delayed task will handle the encoding instead (still on the main thread.) The idle tasks represent opportunistic work, and should not keep the CanvasAsyncBlobCreator alive until they eventually do get to run. Consequently, make them keep a weak 'this' reference. This addresses leaks exposed by r399181. R= BUG= NOTRY=true Committed: https://crrev.com/e60314435575d80cd8cd74196fdf8356f69adb92 Cr-Commit-Position: refs/heads/master@{#399445}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp View 2 chunks +2 lines, -2 lines 1 comment Download

Messages

Total messages: 20 (10 generated)
sof
please take a look. Follow up on https://codereview.chromium.org/2051993002/
4 years, 6 months ago (2016-06-13 08:41:46 UTC) #3
sof
https://codereview.chromium.org/2060153002/diff/1/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp File third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp (left): https://codereview.chromium.org/2060153002/diff/1/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp#oldcode259 third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp:259: } I'm fine with also promptly clearing m_callback here ...
4 years, 6 months ago (2016-06-13 08:45:52 UTC) #4
haraken
LGTM
4 years, 6 months ago (2016-06-13 08:48:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060153002/1
4 years, 6 months ago (2016-06-13 09:07:18 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/237817)
4 years, 6 months ago (2016-06-13 11:58:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060153002/1
4 years, 6 months ago (2016-06-13 12:00:50 UTC) #11
sof
win_chromium_rel_ng is not having the best of days. https://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/237885 completed successfully, but bot completion of ...
4 years, 6 months ago (2016-06-13 13:54:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060153002/1
4 years, 6 months ago (2016-06-13 13:54:49 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-13 13:58:58 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 14:00:40 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e60314435575d80cd8cd74196fdf8356f69adb92
Cr-Commit-Position: refs/heads/master@{#399445}

Powered by Google App Engine
This is Rietveld 408576698