Color conversions: Don't optimize Oklab to XYZD65 conversions [chromium/src : main]

0 views
Skip to first unread message

ccameron chromium (Gerrit)

unread,
Oct 11, 2025, 12:18:03 PM (4 days ago) Oct 11
to ccameron chromium, Philip Rogers, Kaylee Lubick, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Kaylee Lubick and Philip Rogers

ccameron chromium added 2 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
ccameron chromium . resolved

+pdr for blink OWNERship, +kjlubick for the giant stack of patches...

File ui/gfx/color_conversions_unittest.cc
Line 151, Patchset 2: for (auto& color_pair : colors_tests) {
ccameron chromium . unresolved

All of these variables were mis-labeled (input was xyz, not Lab).

Open in Gerrit

Related details

Attention is currently required from:
  • Kaylee Lubick
  • Philip Rogers
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0d0ebc279255246c180b3209fb5b4ba1cf9706f6
Gerrit-Change-Number: 7029581
Gerrit-PatchSet: 3
Gerrit-Owner: ccameron chromium <ccam...@chromium.org>
Gerrit-Reviewer: Kaylee Lubick <kjlu...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Kaylee Lubick <kjlu...@chromium.org>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Comment-Date: Sat, 11 Oct 2025 16:17:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kaylee Lubick (Gerrit)

unread,
Oct 14, 2025, 4:22:17 PM (yesterday) Oct 14
to ccameron chromium, Philip Rogers, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
Attention needed from Philip Rogers and ccameron chromium

Kaylee Lubick voted and added 2 comments

Votes added by Kaylee Lubick

Code-Review+1

2 comments

File ui/gfx/color_conversions.cc
Line 238, Patchset 3 (Latest): const skcms::Vector3 lms_cubed{{
Kaylee Lubick . unresolved

I had to go reference https://bottosson.github.io/posts/oklab/ to figure out why there's a cube/cuberoot here. Do you mind adding a reminder comment that it's just part of the XYZ->Oklab conversion?

Line 245, Patchset 3 (Latest): const auto xyz = skcms::Matrix3x3_apply(getXYDZ65toXYZD50matrix(), xyz_d65);
Kaylee Lubick . unresolved

Can you add a reminder here that OkLab is defined w/r to the D65 white point, thus the "stop" in that conversion before going onto D50 (and I'm guessing D50 is more commonly useful which is why a lot of D65 stuff is being deleted in the following CL)?

Open in Gerrit

Related details

Attention is currently required from:
  • Philip Rogers
  • ccameron chromium
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0d0ebc279255246c180b3209fb5b4ba1cf9706f6
    Gerrit-Change-Number: 7029581
    Gerrit-PatchSet: 3
    Gerrit-Owner: ccameron chromium <ccam...@chromium.org>
    Gerrit-Reviewer: Kaylee Lubick <kjlu...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Philip Rogers <p...@chromium.org>
    Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
    Gerrit-Comment-Date: Tue, 14 Oct 2025 20:21:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    ccameron chromium (Gerrit)

    unread,
    10:46 AM (10 hours ago) 10:46 AM
    to ccameron chromium, Kaylee Lubick, Philip Rogers, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
    Attention needed from Philip Rogers

    ccameron chromium added 3 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    ccameron chromium . resolved

    Thanks, updated!

    File ui/gfx/color_conversions.cc
    Line 238, Patchset 3: const skcms::Vector3 lms_cubed{{
    Kaylee Lubick . resolved

    I had to go reference https://bottosson.github.io/posts/oklab/ to figure out why there's a cube/cuberoot here. Do you mind adding a reminder comment that it's just part of the XYZ->Oklab conversion?

    ccameron chromium

    Done

    Line 245, Patchset 3: const auto xyz = skcms::Matrix3x3_apply(getXYDZ65toXYZD50matrix(), xyz_d65);
    Kaylee Lubick . resolved

    Can you add a reminder here that OkLab is defined w/r to the D65 white point, thus the "stop" in that conversion before going onto D50 (and I'm guessing D50 is more commonly useful which is why a lot of D65 stuff is being deleted in the following CL)?

    ccameron chromium

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Philip Rogers
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0d0ebc279255246c180b3209fb5b4ba1cf9706f6
    Gerrit-Change-Number: 7029581
    Gerrit-PatchSet: 4
    Gerrit-Owner: ccameron chromium <ccam...@chromium.org>
    Gerrit-Reviewer: Kaylee Lubick <kjlu...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Philip Rogers <p...@chromium.org>
    Gerrit-Comment-Date: Wed, 15 Oct 2025 14:45:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kaylee Lubick <kjlu...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kaylee Lubick (Gerrit)

    unread,
    11:02 AM (10 hours ago) 11:02 AM
    to ccameron chromium, Philip Rogers, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
    Attention needed from Philip Rogers and ccameron chromium

    Kaylee Lubick voted and added 1 comment

    Votes added by Kaylee Lubick

    Code-Review+1

    1 comment

    File ui/gfx/color_conversions_unittest.cc
    Line 151, Patchset 2: for (auto& color_pair : colors_tests) {
    ccameron chromium . resolved

    All of these variables were mis-labeled (input was xyz, not Lab).

    Kaylee Lubick

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Philip Rogers
    • ccameron chromium
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0d0ebc279255246c180b3209fb5b4ba1cf9706f6
      Gerrit-Change-Number: 7029581
      Gerrit-PatchSet: 4
      Gerrit-Owner: ccameron chromium <ccam...@chromium.org>
      Gerrit-Reviewer: Kaylee Lubick <kjlu...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Philip Rogers <p...@chromium.org>
      Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
      Gerrit-Comment-Date: Wed, 15 Oct 2025 15:01:52 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: ccameron chromium <ccam...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Philip Rogers (Gerrit)

      unread,
      4:33 PM (5 hours ago) 4:33 PM
      to ccameron chromium, Kaylee Lubick, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org
      Attention needed from ccameron chromium

      Philip Rogers voted and added 1 comment

      Votes added by Philip Rogers

      Code-Review+1

      1 comment

      Patchset-level comments
      Philip Rogers . resolved

      LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • ccameron chromium
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0d0ebc279255246c180b3209fb5b4ba1cf9706f6
      Gerrit-Change-Number: 7029581
      Gerrit-PatchSet: 4
      Gerrit-Owner: ccameron chromium <ccam...@chromium.org>
      Gerrit-Reviewer: Kaylee Lubick <kjlu...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
      Gerrit-Comment-Date: Wed, 15 Oct 2025 20:32:43 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages