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

Issue 2699533010: cc: Fix cleanup path for image decode requests in ImageController. (Closed)

Created:
3 years, 10 months ago by Khushal
Modified:
3 years, 10 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix cleanup path for image decode requests in ImageController. The change fixes a couple of things in the ImageController: 1) We try to mark each image decode task as completed when tearing down the work queued for the image worker in StopWorkerTasks. Since multiple requests for the same image will re-use the tasks, we try to complete the same task again. 2) Make sure that we tear down the worker tasks when switching caches, not just when the cache is reset. BUG=693682 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2699533010 Cr-Commit-Position: refs/heads/master@{#452237} Committed: https://chromium.googlesource.com/chromium/src/+/fbe2b0877565ac300ce38da21e4bf0fb93e7de40

Patch Set 1 #

Total comments: 3

Patch Set 2 : .. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -4 lines) Patch
M cc/tiles/image_controller.cc View 1 3 chunks +10 lines, -4 lines 0 comments Download
M cc/tiles/image_controller_unittest.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Khushal
3 years, 10 months ago (2017-02-17 19:44:29 UTC) #3
vmpstr
https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc File cc/tiles/image_controller.cc (right): https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc#newcode126 cc/tiles/image_controller.cc:126: } else if (cache_ && cache_ != cache) { ...
3 years, 10 months ago (2017-02-17 21:15:13 UTC) #4
Khushal
https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc File cc/tiles/image_controller.cc (right): https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc#newcode126 cc/tiles/image_controller.cc:126: } else if (cache_ && cache_ != cache) { ...
3 years, 10 months ago (2017-02-17 21:17:35 UTC) #5
vmpstr
lgtm https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc File cc/tiles/image_controller.cc (right): https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc#newcode126 cc/tiles/image_controller.cc:126: } else if (cache_ && cache_ != cache) ...
3 years, 10 months ago (2017-02-17 21:22:09 UTC) #6
Khushal
On 2017/02/17 21:22:09, vmpstr wrote: > lgtm > > https://codereview.chromium.org/2699533010/diff/1/cc/tiles/image_controller.cc > File cc/tiles/image_controller.cc (right): > ...
3 years, 10 months ago (2017-02-22 21:09:03 UTC) #7
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/2699533010/20001
3 years, 10 months ago (2017-02-22 21:10:19 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 22:30:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/fbe2b0877565ac300ce38da21e4b...

Powered by Google App Engine
This is Rietveld 408576698