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

Issue 2325623003: Replace IDMap with std::unordered_map in ResourceManager (Closed)

Created:
4 years, 3 months ago by mdjones
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace IDMap with std::unordered_map in ResourceManager BUG= Committed: https://crrev.com/9daf1acec77f33098c1c5b58e72f71056c21a042 Cr-Commit-Position: refs/heads/master@{#418739}

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Patch Set 3 : nits #

Total comments: 15

Patch Set 4 : address comments #

Total comments: 1

Patch Set 5 : fix GetResource for certain dynamic resources #

Total comments: 2

Patch Set 6 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -43 lines) Patch
M ui/android/resources/resource_manager.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ui/android/resources/resource_manager_impl.h View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M ui/android/resources/resource_manager_impl.cc View 1 2 3 4 5 8 chunks +44 lines, -35 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (6 generated)
mdjones
ptal
4 years, 3 months ago (2016-09-08 21:03:11 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc#newcode108 ui/android/resources/resource_manager_impl.cc:108: Resource* tinted_resource = new Resource(); Can you switch this ...
4 years, 3 months ago (2016-09-08 22:05:02 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc#newcode248 ui/android/resources/resource_manager_impl.cc:248: CrushedSpriteResource* resource = new CrushedSpriteResource( +1 to what Alex ...
4 years, 3 months ago (2016-09-09 06:11:32 UTC) #4
mdjones
https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/1/ui/android/resources/resource_manager_impl.cc#newcode108 ui/android/resources/resource_manager_impl.cc:108: Resource* tinted_resource = new Resource(); On 2016/09/08 22:05:01, aelias ...
4 years, 3 months ago (2016-09-09 16:47:23 UTC) #5
aelias_OOO_until_Jul13
Looks decent, just a bunch more minor comments: https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.cc#newcode70 ui/android/resources/resource_manager_impl.cc:70: if ...
4 years, 3 months ago (2016-09-09 21:50:06 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.h File ui/android/resources/resource_manager_impl.h (right): https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.h#newcode88 ui/android/resources/resource_manager_impl.h:88: using ResourceMap = std::unordered_map<int, std::unique_ptr<Resource> >; On 2016/09/09 at ...
4 years, 3 months ago (2016-09-09 21:59:45 UTC) #7
mdjones
https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/40001/ui/android/resources/resource_manager_impl.cc#newcode70 ui/android/resources/resource_manager_impl.cc:70: if (resources_[res_type].find(res_id) != resources_[res_type].end()) { On 2016/09/09 21:50:05, aelias ...
4 years, 3 months ago (2016-09-12 16:55:09 UTC) #8
aelias_OOO_until_Jul13
lgtm
4 years, 3 months ago (2016-09-13 02:42:20 UTC) #9
mdjones
Addressed one further issue I found when using dynamic resources. The way unordered_map works, looking ...
4 years, 3 months ago (2016-09-14 17:10:35 UTC) #10
aelias_OOO_until_Jul13
On 2016/09/14 at 17:10:35, mdjones wrote: > Addressed one further issue I found when using ...
4 years, 3 months ago (2016-09-14 17:59:01 UTC) #11
mdjones
On 2016/09/14 17:59:01, aelias wrote: > On 2016/09/14 at 17:10:35, mdjones wrote: > > Addressed ...
4 years, 3 months ago (2016-09-14 18:26:20 UTC) #12
mdjones
On 2016/09/14 17:59:01, aelias wrote: > On 2016/09/14 at 17:10:35, mdjones wrote: > > Addressed ...
4 years, 3 months ago (2016-09-14 18:26:22 UTC) #13
aelias_OOO_until_Jul13
OK, sorry it took me a few minutes to understand what the problem was. lgtm ...
4 years, 3 months ago (2016-09-14 20:14:37 UTC) #14
mdjones
https://codereview.chromium.org/2325623003/diff/80001/ui/android/resources/resource_manager_impl.cc File ui/android/resources/resource_manager_impl.cc (right): https://codereview.chromium.org/2325623003/diff/80001/ui/android/resources/resource_manager_impl.cc#newcode70 ui/android/resources/resource_manager_impl.cc:70: Resource* resource = nullptr; On 2016/09/14 20:14:37, aelias wrote: ...
4 years, 3 months ago (2016-09-14 22:23:02 UTC) #15
David Trainor- moved to gerrit
lgtm!
4 years, 3 months ago (2016-09-14 22:27:29 UTC) #16
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/2325623003/100001
4 years, 3 months ago (2016-09-14 22:29:07 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/86041)
4 years, 3 months ago (2016-09-14 23:51:55 UTC) #21
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/2325623003/100001
4 years, 3 months ago (2016-09-15 00:32:47 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-15 01:13:51 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 01:16:05 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9daf1acec77f33098c1c5b58e72f71056c21a042
Cr-Commit-Position: refs/heads/master@{#418739}

Powered by Google App Engine
This is Rietveld 408576698