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

Issue 2407573002: Wait to notify completion until after a Lo-Fi image is reloaded. (Closed)

Created:
4 years, 2 months ago by sclittle
Modified:
4 years, 2 months ago
Reviewers:
Nate Chapin
CC:
Nate Chapin, blink-reviews, chromium-reviews, gavinp+loader_chromium.org, loading-reviews+fetch_chromium.org, megjablon, tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wait to notify completion until after a Lo-Fi image is reloaded. Currently, if ImageResource::reloadIfLoFi() is called while that ImageResource is still loading, the resource's clients and observers are notified of completion when the current load is cancelled. After this CL, the ImageResource waits to notify of completion until the reload completes. BUG=654055 Committed: https://crrev.com/1e457676004f8af16e0086280b73d87c1e5efba7 Cr-Commit-Position: refs/heads/master@{#424926}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Moved flag into ImageResource. #

Total comments: 2

Patch Set 3 : removed unnecessary m_isSchedulingReload check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -25 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 6 chunks +36 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 9 chunks +112 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResourceClients.h View 1 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResourceClients.cpp View 3 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
sclittle
4 years, 2 months ago (2016-10-07 21:46:11 UTC) #2
Nate Chapin
n https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode536 third_party/WebKit/Source/core/fetch/ImageResource.cpp:536: { I don't think you need to force ...
4 years, 2 months ago (2016-10-10 23:47:49 UTC) #3
sclittle
https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode536 third_party/WebKit/Source/core/fetch/ImageResource.cpp:536: { On 2016/10/10 23:47:49, Nate Chapin wrote: > I ...
4 years, 2 months ago (2016-10-11 02:56:57 UTC) #4
Nate Chapin
https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode536 third_party/WebKit/Source/core/fetch/ImageResource.cpp:536: { On 2016/10/11 at 02:56:56, sclittle wrote: > On ...
4 years, 2 months ago (2016-10-12 22:56:17 UTC) #5
sclittle
https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/1/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode536 third_party/WebKit/Source/core/fetch/ImageResource.cpp:536: { On 2016/10/12 22:56:17, Nate Chapin wrote: > On ...
4 years, 2 months ago (2016-10-12 23:38:17 UTC) #6
Nate Chapin
LGTM with a nit https://codereview.chromium.org/2407573002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode114 third_party/WebKit/Source/core/fetch/ImageResource.cpp:114: if (isLoading() || m_isSchedulingReload) This ...
4 years, 2 months ago (2016-10-12 23:45:24 UTC) #7
sclittle
https://codereview.chromium.org/2407573002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2407573002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode114 third_party/WebKit/Source/core/fetch/ImageResource.cpp:114: if (isLoading() || m_isSchedulingReload) On 2016/10/12 23:45:23, Nate Chapin ...
4 years, 2 months ago (2016-10-12 23:49:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2407573002/40001
4 years, 2 months ago (2016-10-12 23:49:49 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/85597) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-12 23:56:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2407573002/40001
4 years, 2 months ago (2016-10-12 23:58:23 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/85614)
4 years, 2 months ago (2016-10-13 00:05:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2407573002/40001
4 years, 2 months ago (2016-10-13 00:36:43 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-13 01:00:37 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 01:04:07 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1e457676004f8af16e0086280b73d87c1e5efba7
Cr-Commit-Position: refs/heads/master@{#424926}

Powered by Google App Engine
This is Rietveld 408576698