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

Issue 1665413004: toBlob: If idle image encoding is postponed for too long, switch to main thread (Closed)

Created:
4 years, 10 months ago by xlai (Olivia)
Modified:
4 years, 9 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, 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

toBlob: If idle image encoding is postponed for too long, switch to main thread BUG=583070 Committed: https://crrev.com/dc5c70a312e24ca03d94696f16c5be318ce198d6 Cr-Commit-Position: refs/heads/master@{#377054}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adding one more timeout threshold to check completion of idle task #

Patch Set 3 : Swapped completion timeout threshold for android and non-android #

Total comments: 9

Patch Set 4 : Simple Renaming #

Patch Set 5 : Added a unit test #

Total comments: 11

Patch Set 6 : Rebase with master and fix merge conflicts with another recently landed patch #

Patch Set 7 : Edit based on feedback #

Patch Set 8 : Removed unnecessary include in unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -39 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h View 1 2 3 4 5 6 3 chunks +36 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp View 1 2 3 4 5 6 8 chunks +147 lines, -29 lines 0 comments Download
A third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp View 1 2 3 4 5 6 7 1 chunk +195 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
xlai (Olivia)
According to this research study 9https://www.nngroup.com/articles/response-times-3-important-limits/), 0.1 second is about the limit for having the ...
4 years, 10 months ago (2016-02-05 17:00:38 UTC) #2
Justin Novosad
https://codereview.chromium.org/1665413004/diff/1/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp File third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp (right): https://codereview.chromium.org/1665413004/diff/1/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp#newcode28 third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp:28: const double IdleTaskDelayThreshold = 100.0; // 100ms is the ...
4 years, 10 months ago (2016-02-09 16:32:21 UTC) #3
xlai (Olivia)
Summary of changes: 1. Renaming based on feedback 2. Adding a timeout limit threshold for ...
4 years, 10 months ago (2016-02-11 02:07:06 UTC) #4
Justin Novosad
https://codereview.chromium.org/1665413004/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp File third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp (right): https://codereview.chromium.org/1665413004/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp#newcode62 third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp:62: m_timeoutSelfRef = nullptr; this is not necessary, RefPtr default ...
4 years, 10 months ago (2016-02-11 20:36:45 UTC) #6
xlai (Olivia)
Added a unit test. Many existing functions in CanvasAsyncBlobCreator become protected functions so that the ...
4 years, 10 months ago (2016-02-22 18:58:06 UTC) #9
Justin Novosad
Great job with the tests. https://codereview.chromium.org/1665413004/diff/120001/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h File third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h (right): https://codereview.chromium.org/1665413004/diff/120001/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h#newcode34 third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h:34: virtual void signalTaskSwitchInStartTimeoutEvent() { ...
4 years, 10 months ago (2016-02-22 20:26:34 UTC) #10
xlai (Olivia)
Rebased with master to fix merge conflicts with another recently landed patch. Added comments and ...
4 years, 10 months ago (2016-02-22 22:28:57 UTC) #12
Justin Novosad
lgtm
4 years, 10 months ago (2016-02-22 22:41:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665413004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665413004/200001
4 years, 10 months ago (2016-02-23 16:46:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665413004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665413004/200001
4 years, 10 months ago (2016-02-23 19:16:56 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 10 months ago (2016-02-23 19:29:58 UTC) #21
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/dc5c70a312e24ca03d94696f16c5be318ce198d6 Cr-Commit-Position: refs/heads/master@{#377054}
4 years, 10 months ago (2016-02-23 19:30:51 UTC) #23
xlai (Olivia)
4 years, 10 months ago (2016-02-24 15:57:26 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:200001) has been created in
https://codereview.chromium.org/1732913002/ by xlai@chromium.org.

The reason for reverting is: I am suspecting that this CL is causing a leak in
WebKit Leak bot. Reverting it first to inspect the source of problems..

Powered by Google App Engine
This is Rietveld 408576698