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

Issue 2140803002: Color: Don't duplicate ICC profile data (Closed)

Created:
4 years, 5 months ago by ccameron
Modified:
4 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Color: Don't duplicate ICC profile data Make gfx::ColorSpace have an internal pointer to a globally-unique structure for the color space, where its ICC profile can be stored. BUG=622133 Committed: https://crrev.com/92294e78c762e993e8dcf538860abf65629f3320 Committed: https://crrev.com/0c3ad3287b3fae9b6329f8e7c34c0117b5c8da65 Committed: https://crrev.com/f1689c8b1c5d6411b8a14912227590345c3c3a94 Cr-Original-Original-Commit-Position: refs/heads/master@{#405211} Cr-Original-Commit-Position: refs/heads/master@{#405424} Cr-Commit-Position: refs/heads/master@{#405552}

Patch Set 1 #

Patch Set 2 : Fix linux #

Total comments: 6

Patch Set 3 : Incorporate review feedback #

Total comments: 3

Patch Set 4 : Use LazyInstance #

Patch Set 5 : Rebase, find a tryjob that shows the problem #

Patch Set 6 : Rebase again #

Patch Set 7 : Make global map leaky #

Total comments: 2

Patch Set 8 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -11 lines) Patch
M ui/gfx/color_space.h View 4 chunks +17 lines, -2 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 5 6 7 3 chunks +106 lines, -5 lines 0 comments Download
M ui/gfx/color_space_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/color_space_x11.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 53 (26 generated)
ccameron
This removes the "make a bazillion copies of the ICC profile" issue. I consider this ...
4 years, 5 months ago (2016-07-11 22:01:59 UTC) #2
hubbe
Unfortunately, it's still possible to have multiple representations of the same color space, but with ...
4 years, 5 months ago (2016-07-11 22:51:59 UTC) #3
ccameron
True, this will not keep the same object for two different-but-the-same ICC profiles, but that ...
4 years, 5 months ago (2016-07-12 02:49:01 UTC) #4
hubbe
lgtm https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc File ui/gfx/color_space.cc (right): https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc#newcode81 ui/gfx/color_space.cc:81: std::map<Key, GlobalData*>::iterator iterator_; Seems like map_.erase(Key(icc_profile_)) would work ...
4 years, 5 months ago (2016-07-12 05:12:40 UTC) #5
ccameron
Thanks! https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc File ui/gfx/color_space.cc (right): https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc#newcode81 ui/gfx/color_space.cc:81: std::map<Key, GlobalData*>::iterator iterator_; On 2016/07/12 05:12:40, hubbe wrote: ...
4 years, 5 months ago (2016-07-12 19:11:03 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/2140803002/40001
4 years, 5 months ago (2016-07-12 19:14:30 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/102475)
4 years, 5 months ago (2016-07-12 21:39:15 UTC) #10
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/2140803002/40001
4 years, 5 months ago (2016-07-12 22:07:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191673)
4 years, 5 months ago (2016-07-13 01:12:23 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/2140803002/40001
4 years, 5 months ago (2016-07-13 16:44:40 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-13 17:36:44 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/92294e78c762e993e8dcf538860abf65629f3320 Cr-Commit-Position: refs/heads/master@{#405211}
4 years, 5 months ago (2016-07-13 17:39:37 UTC) #19
Dan Beam
https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc File ui/gfx/color_space.cc (right): https://codereview.chromium.org/2140803002/diff/40001/ui/gfx/color_space.cc#newcode87 ui/gfx/color_space.cc:87: base::Lock ColorSpace::GlobalData::map_lock_; i think these are adding static initializers: ...
4 years, 5 months ago (2016-07-13 19:15:10 UTC) #21
Dan Beam
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2148013002/ by dbeam@chromium.org. ...
4 years, 5 months ago (2016-07-13 19:19:20 UTC) #22
ccameron
On 2016/07/13 19:19:20, Dan Beam wrote: > A revert of this CL (patchset #3 id:40001) ...
4 years, 5 months ago (2016-07-13 19:37:46 UTC) #23
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/2140803002/60001
4 years, 5 months ago (2016-07-14 02:59:22 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-14 03:03:55 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 03:04:01 UTC) #34
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0c3ad3287b3fae9b6329f8e7c34c0117b5c8da65 Cr-Commit-Position: refs/heads/master@{#405424}
4 years, 5 months ago (2016-07-14 03:05:02 UTC) #36
magjed_chromium
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2150883002/ by magjed@chromium.org. ...
4 years, 5 months ago (2016-07-14 10:17:44 UTC) #37
ccameron
ptal -- IIUC this fixes things. Are there any trybots for the Windows failure? https://codereview.chromium.org/2140803002/diff/120001/ui/gfx/color_space.cc ...
4 years, 5 months ago (2016-07-14 18:42:11 UTC) #40
hubbe
lgtm https://codereview.chromium.org/2140803002/diff/120001/ui/gfx/color_space.cc File ui/gfx/color_space.cc (right): https://codereview.chromium.org/2140803002/diff/120001/ui/gfx/color_space.cc#newcode84 ui/gfx/color_space.cc:84: // back into it at unpredictable times during ...
4 years, 5 months ago (2016-07-14 18:54:07 UTC) #41
ccameron
On 2016/07/14 18:54:07, hubbe wrote: > lgtm > > https://codereview.chromium.org/2140803002/diff/120001/ui/gfx/color_space.cc > File ui/gfx/color_space.cc (right): > ...
4 years, 5 months ago (2016-07-14 19:06:25 UTC) #44
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/2140803002/140001
4 years, 5 months ago (2016-07-14 19:38:32 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-14 20:12:17 UTC) #50
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 20:12:38 UTC) #51
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 20:14:30 UTC) #53
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f1689c8b1c5d6411b8a14912227590345c3c3a94
Cr-Commit-Position: refs/heads/master@{#405552}

Powered by Google App Engine
This is Rietveld 408576698