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

Issue 2662303004: Move const ResourceProvider members into Settings struct (Closed)

Created:
3 years, 10 months ago by ericrk
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

Move const ResourceProvider members into Settings struct Currently, ResourceProvider members which are set once at init and never modified are not clearly identified. This makes it hard to see what members can be used in a threadsafe manner. This change moves these members to a Settings struct and makes the settings "const", making it clearer how these may be used. R=vmpstr@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2662303004 Cr-Commit-Position: refs/heads/master@{#447906} Committed: https://chromium.googlesource.com/chromium/src/+/a6e7079b7f5fe5448c8dd47f4cb991d56dbf6bb5

Patch Set 1 #

Patch Set 2 : comment update #

Total comments: 2

Patch Set 3 : feedback #

Patch Set 4 : fix init order #

Patch Set 5 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -140 lines) Patch
M cc/resources/resource_provider.h View 1 2 4 chunks +34 lines, -29 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 18 chunks +77 lines, -76 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 21 chunks +25 lines, -27 lines 0 comments Download
M cc/surfaces/display.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_resource_provider.h View 4 chunks +2 lines, -4 lines 0 comments Download
M cc/test/pixel_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
ericrk
3 years, 10 months ago (2017-02-01 19:45:17 UTC) #2
vmpstr
lgtm https://codereview.chromium.org/2662303004/diff/20001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/2662303004/diff/20001/cc/resources/resource_provider.h#newcode739 cc/resources/resource_provider.h:739: const Settings settings_; const struct Settings { ...
3 years, 10 months ago (2017-02-01 21:06:11 UTC) #3
ericrk
https://codereview.chromium.org/2662303004/diff/20001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/2662303004/diff/20001/cc/resources/resource_provider.h#newcode739 cc/resources/resource_provider.h:739: const Settings settings_; On 2017/02/01 21:06:11, vmpstr wrote: > ...
3 years, 10 months ago (2017-02-01 21:20:10 UTC) #6
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/2662303004/40001
3 years, 10 months ago (2017-02-01 21:20:24 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/7444) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-01 21:33:00 UTC) #9
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/2662303004/60001
3 years, 10 months ago (2017-02-01 22:00:12 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/301973)
3 years, 10 months ago (2017-02-01 22:31:08 UTC) #14
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/2662303004/60001
3 years, 10 months ago (2017-02-01 23:12:08 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/4430)
3 years, 10 months ago (2017-02-01 23:26:59 UTC) #18
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/2662303004/80001
3 years, 10 months ago (2017-02-02 23:55:24 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 03:38:47 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a6e7079b7f5fe5448c8dd47f4cb9...

Powered by Google App Engine
This is Rietveld 408576698