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

Issue 2161293002: Color: Separate ICCProfile and ColorSpace structures (Closed)

Created:
4 years, 5 months ago by ccameron
Modified:
4 years, 5 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Color: Separate ICCProfile and ColorSpace structures Remove the extra effort being made to avoid replication of ICC profile data across object instances. With the two separate structures, we will always know when we have the "heavy" version. Add plumbing to pass ColorSpace as part of cc::TransferableResource. Note that the functionality to convert between ICCProfile and ColorSpace is not present in this patch. BUG=622133 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/efdab1600b787e4e1f82fb05ae6a397d90a0d7b5 Cr-Commit-Position: refs/heads/master@{#407622}

Patch Set 1 #

Patch Set 2 : Add more comments #

Patch Set 3 : Sepaate icc files #

Patch Set 4 : Fix windows compile #

Patch Set 5 : Add parts to resource provider #

Total comments: 5

Patch Set 6 : Delete XYZ part, preserve ICC #

Total comments: 4

Patch Set 7 : Err, get the right stuff #

Total comments: 6

Patch Set 8 : incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -328 lines) Patch
M cc/ipc/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/cc_ipc.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M cc/resources/transferable_resource.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -46 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 5 6 1 chunk +26 lines, -115 lines 0 comments Download
M ui/gfx/color_space_mac.mm View 1 2 1 chunk +0 lines, -34 lines 0 comments Download
M ui/gfx/color_space_win.cc View 1 2 1 chunk +0 lines, -69 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
A ui/gfx/icc_profile.h View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
A ui/gfx/icc_profile.cc View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
A + ui/gfx/icc_profile_mac.mm View 1 2 1 chunk +5 lines, -9 lines 0 comments Download
A + ui/gfx/icc_profile_win.cc View 1 2 2 chunks +6 lines, -8 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits.cc View 1 2 3 4 5 1 chunk +15 lines, -32 lines 0 comments Download
M ui/gfx/ipc/color/gfx_param_traits_macros.h View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (35 generated)
ccameron
ptal. A follow-on patch will add a gfx::ColorSpace to cc::TextureMailbox -- this can be populated ...
4 years, 5 months ago (2016-07-20 05:49:07 UTC) #18
hubbe
LGTM + some comments https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/icc_profile.cc File ui/gfx/icc_profile.cc (right): https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/icc_profile.cc#newcode43 ui/gfx/icc_profile.cc:43: // TODO(ccameron): Support constructing ICC ...
4 years, 5 months ago (2016-07-21 22:08:54 UTC) #23
ccameron
Adding enne@ for cc/ stuff, and dcheng@ for IPC
4 years, 5 months ago (2016-07-21 22:08:56 UTC) #25
enne (OOO)
https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/color_space.h#newcode25 ui/gfx/color_space.h:25: // Used to represet a color space for the ...
4 years, 5 months ago (2016-07-21 22:22:53 UTC) #26
enne (OOO)
lgtm
4 years, 5 months ago (2016-07-21 22:22:55 UTC) #27
ccameron
Thanks! Adding avi@ for content/OWNER https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/icc_profile.cc File ui/gfx/icc_profile.cc (right): https://codereview.chromium.org/2161293002/diff/80001/ui/gfx/icc_profile.cc#newcode43 ui/gfx/icc_profile.cc:43: // TODO(ccameron): Support constructing ...
4 years, 5 months ago (2016-07-22 00:59:17 UTC) #28
dcheng
https://codereview.chromium.org/2161293002/diff/100001/ui/gfx/icc_profile.cc File ui/gfx/icc_profile.cc (right): https://codereview.chromium.org/2161293002/diff/100001/ui/gfx/icc_profile.cc#newcode22 ui/gfx/icc_profile.cc:22: static base::LazyInstance<std::list<ICCProfile>> g_mru_cache; FWIW, we do have some MRU ...
4 years, 5 months ago (2016-07-22 05:00:27 UTC) #33
ccameron
Thanks! Updated to use the MRU cache, and also merged in some constants from https://codereview.chromium.org/2169913003/. ...
4 years, 5 months ago (2016-07-22 21:02:41 UTC) #34
ccameron
Err, actually updated now.
4 years, 5 months ago (2016-07-22 21:06:28 UTC) #35
dcheng
LGTM with nits https://codereview.chromium.org/2161293002/diff/120001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2161293002/diff/120001/ui/gfx/color_space.h#newcode23 ui/gfx/color_space.h:23: // Used to represet a color ...
4 years, 5 months ago (2016-07-25 13:42:26 UTC) #36
ccameron
Thanks! Adding esprehn@ to stamp content/renderer/render_view_impl.cc https://codereview.chromium.org/2161293002/diff/120001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2161293002/diff/120001/ui/gfx/color_space.h#newcode23 ui/gfx/color_space.h:23: // Used to ...
4 years, 5 months ago (2016-07-25 21:31:54 UTC) #40
esprehn
lgtm
4 years, 5 months ago (2016-07-25 22:50:17 UTC) #43
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/2161293002/140001
4 years, 5 months ago (2016-07-25 22:54:15 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-25 23:00:28 UTC) #48
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 23:02:33 UTC) #50
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/efdab1600b787e4e1f82fb05ae6a397d90a0d7b5
Cr-Commit-Position: refs/heads/master@{#407622}

Powered by Google App Engine
This is Rietveld 408576698