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

Issue 293393008: gfx/ui/color_profile: add color profile cache on win (Closed)

Created:
6 years, 7 months ago by Noel Gordon
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, Ken Russell (switch to Gerrit)
Visibility:
Public.

Description

gfx/ui/color_profile: add color profile cache on win Windows stores system color profiles on disk. To avoid disk reads and the jank that that can cause, add a color profile cache keyed by device name. Here define/implement the cache interface. Make the cache thread- safe to allow safe access from any blocking pool thread. The cache key is a wide string for now and I might change that to an int64 device id in a subsequent patch, we'll see. BUG=368694 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273786

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Patch for landing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
M ui/gfx/color_profile_win.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Noel Gordon
6 years, 7 months ago (2014-05-28 02:09:27 UTC) #1
sky
https://codereview.chromium.org/293393008/diff/1/ui/gfx/color_profile_win.cc File ui/gfx/color_profile_win.cc (right): https://codereview.chromium.org/293393008/diff/1/ui/gfx/color_profile_win.cc#newcode18 ui/gfx/color_profile_win.cc:18: base::LazyInstance<ColorProfileMap>::Leaky g_color_profile_map = Seems like you only want ColorProfileCache ...
6 years, 6 months ago (2014-05-28 15:31:21 UTC) #2
Noel Gordon
Thank you. Made all the changes you suggested. PTAL.
6 years, 6 months ago (2014-05-29 10:50:54 UTC) #3
sky
LGTM https://codereview.chromium.org/293393008/diff/20001/ui/gfx/color_profile_win.cc File ui/gfx/color_profile_win.cc (right): https://codereview.chromium.org/293393008/diff/20001/ui/gfx/color_profile_win.cc#newcode15 ui/gfx/color_profile_win.cc:15: class ColorProfileCache { Add description. https://codereview.chromium.org/293393008/diff/20001/ui/gfx/color_profile_win.cc#newcode19 ui/gfx/color_profile_win.cc:19: bool ...
6 years, 6 months ago (2014-05-29 15:31:31 UTC) #4
Noel Gordon
Yeap all done, submitting.
6 years, 6 months ago (2014-05-30 01:43:50 UTC) #5
Noel Gordon
The CQ bit was checked by noel@chromium.org
6 years, 6 months ago (2014-05-30 01:44:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/293393008/40001
6 years, 6 months ago (2014-05-30 01:45:14 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 10:25:04 UTC) #8
Message was sent while issue was closed.
Change committed as 273786

Powered by Google App Engine
This is Rietveld 408576698