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

Issue 2795093002: color: Clean up dependencies to allow including in cc/paint (Closed)

Created:
3 years, 8 months ago by ccameron
Modified:
3 years, 7 months ago
Reviewers:
msarett, msarett1, Nico
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Clean up dependencies to allow including in cc/paint Move color_space.cc and some related functionality into gfx:color_space, so that they can be included in cc/paint without creating a dependency cycle. Also shrink some of the struct sizes and add a hash function, as these will be helpful in future patches. BUG=701942 Review-Url: https://codereview.chromium.org/2795093002 Cr-Commit-Position: refs/heads/master@{#461770} Committed: https://chromium.googlesource.com/chromium/src/+/77f3b241fc87c2a925ba8d0da94cc97667abc32c

Patch Set 1 #

Patch Set 2 : Move to separate component #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -16 lines) Patch
M ui/gfx/BUILD.gn View 1 4 chunks +11 lines, -10 lines 1 comment Download
M ui/gfx/color_space.h View 6 chunks +7 lines, -4 lines 0 comments Download
M ui/gfx/color_space.cc View 3 chunks +26 lines, -1 line 0 comments Download
M ui/gfx/icc_profile.cc View 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (14 generated)
ccameron
Minor tweaks here, going towards the bigger patch in https://codereview.chromium.org/2795093002
3 years, 8 months ago (2017-04-03 23:33:43 UTC) #4
msarett1
lgtm
3 years, 8 months ago (2017-04-04 12:55:38 UTC) #12
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/2795093002/20001
3 years, 8 months ago (2017-04-04 17:32:48 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/77f3b241fc87c2a925ba8d0da94cc97667abc32c
3 years, 8 months ago (2017-04-04 18:17:24 UTC) #17
Nico
3 years, 7 months ago (2017-05-19 21:01:50 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2795093002/diff/20001/ui/gfx/BUILD.gn
File ui/gfx/BUILD.gn (right):

https://codereview.chromium.org/2795093002/diff/20001/ui/gfx/BUILD.gn#newcode414
ui/gfx/BUILD.gn:414: defines = [ "GFX_IMPLEMENTATION" ]
This does not lgtm. You now have two components both setting GFX_IMPLEMENTATION,
which means things in deps (like switches_sources, which you added in
https://codereview.chromium.org/2877093002) now have definitions in both .sos.
Please create a dedicated _IMPLEMENTATION file for this, a dedicated _EXPORT
thing for this, and make it depend on the gfx component, or make
switches_sources use your new _EXPORT and make gfx depend on this component.

See
https://chromium.googlesource.com/chromium/src/+/master/docs/component_build.md
for more information on the component build.

Powered by Google App Engine
This is Rietveld 408576698