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

Issue 2247573002: cc: Don't upload UI resources twice after eviction (Closed)

Created:
4 years, 4 months ago by no sievers
Modified:
4 years, 3 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Don't upload UI resources twice after eviction This can happen if you create a new UI resource (through LTH) which queues a request while there are any evicted resources (as tracked by LTHImpl). RecreateUIResources() will then iterate over all existing client ids and queue another CREATE request. Simply check for duplicates before queuing more requests. The double-upload behavior didn't play well with Android's Thumbnail class which drops the bitmap after every UIResourceClient::GetBitmap() call. BUG=636630 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/8afa2d49f71b2a3ce36709ba69610d7d1bf85262 Cr-Commit-Position: refs/heads/master@{#414785}

Patch Set 1 #

Patch Set 2 : cc: Don't upload UI resources again after eviction #

Total comments: 14

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -15 lines) Patch
M cc/test/fake_scoped_ui_resource.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_scoped_ui_resource.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 6 chunks +40 lines, -12 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
no sievers
Dana, ptal.
4 years, 4 months ago (2016-08-13 00:19:51 UTC) #6
danakj
Would like the test to be a bit more verbose about all 3 resources. LGTM ...
4 years, 4 months ago (2016-08-15 22:52:11 UTC) #12
no sievers
https://codereview.chromium.org/2247573002/diff/20001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2247573002/diff/20001/cc/trees/layer_tree_host.cc#newcode1193 cc/trees/layer_tree_host.cc:1193: if (std::find_if(ui_resource_request_queue_.begin(), On 2016/08/15 22:52:11, danakj wrote: > Can ...
4 years, 3 months ago (2016-08-26 18:38:19 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/2247573002/40001
4 years, 3 months ago (2016-08-26 18:39:36 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 19:45:36 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 19:47:55 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8afa2d49f71b2a3ce36709ba69610d7d1bf85262
Cr-Commit-Position: refs/heads/master@{#414785}

Powered by Google App Engine
This is Rietveld 408576698