media: Add HDR watch time histograms (no UKM) [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Sep 24, 2025, 8:06:45 PM (2 days ago) Sep 24
to Sangbaek Park, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org

AI Code Reviewer added 1 comment

File third_party/blink/renderer/platform/media/watch_time_reporter.h
Line 211, Patchset 1 (Latest): WebMediaPlayer::DisplayType display_type);
AI Code Reviewer . unresolved

To improve readability at call sites, please consider using a `base::StrongAlias` for the `is_eme` parameter, as this function is called with boolean literals. For example, you could define `using IsEme = base::StrongAlias<class IsEmeTag, bool>;` and change the function signature accordingly. (Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters)

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I778cd63eff6b57856792887cd92fec46d481a160
Gerrit-Change-Number: 6980599
Gerrit-PatchSet: 1
Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 00:06:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Sangbaek Park (Gerrit)

unread,
Sep 24, 2025, 8:20:34 PM (2 days ago) Sep 24
to AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org

Sangbaek Park added 1 comment

File third_party/blink/renderer/platform/media/watch_time_reporter.h
Line 211, Patchset 1: WebMediaPlayer::DisplayType display_type);
AI Code Reviewer . resolved

To improve readability at call sites, please consider using a `base::StrongAlias` for the `is_eme` parameter, as this function is called with boolean literals. For example, you could define `using IsEme = base::StrongAlias<class IsEmeTag, bool>;` and change the function signature accordingly. (Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters)

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Sangbaek Park

Won't fix: It's an internal method.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I778cd63eff6b57856792887cd92fec46d481a160
Gerrit-Change-Number: 6980599
Gerrit-PatchSet: 2
Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 00:20:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Sangbaek Park (Gerrit)

unread,
Sep 24, 2025, 8:32:56 PM (2 days ago) Sep 24
to Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
Attention needed from Dale Curtis

Sangbaek Park added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Sangbaek Park . resolved

@dalec...@chromium.org This CL is about reporting HDR watch times (UMA only). PTAL, thank you!

Open in Gerrit

Related details

Attention is currently required from:
  • Dale Curtis
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I778cd63eff6b57856792887cd92fec46d481a160
Gerrit-Change-Number: 6980599
Gerrit-PatchSet: 3
Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 00:32:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dale Curtis (Gerrit)

unread,
Sep 25, 2025, 12:35:26 PM (22 hours ago) Sep 25
to Sangbaek Park, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
Attention needed from Sangbaek Park

Dale Curtis added 4 comments

File media/base/video_color_space.cc
Line 67, Patchset 5 (Latest):bool VideoColorSpace::IsHdr() const {
Dale Curtis . unresolved

Lets match gfx::ColorSpace here. `IsHDR`

File media/mojo/services/watch_time_recorder_unittest.cc
Line 2273, Patchset 5 (Latest): constexpr base::TimeDelta kWatchTime = base::Seconds(25);
Dale Curtis . unresolved

This set of actions doesn't reflect real usage. Can we rework into a couple tests instead?

File third_party/blink/renderer/platform/media/watch_time_reporter.h
Line 159, Patchset 5 (Latest): // Updates whether HDR is enabled for the video.
Dale Curtis . unresolved

I don't think this is the right spot, color space is a secondary property, so it should be in the properties structure above. It only changes at the same time as the codec so they should be grouped together.

File third_party/blink/renderer/platform/media/web_media_player_impl.cc
Line 2523, Patchset 5 (Latest): if (codec_change || codec_profile_change)
Dale Curtis . unresolved

Now this should be `|| hdr_changed`

Open in Gerrit

Related details

Attention is currently required from:
  • Sangbaek Park
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:35:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Sep 25, 2025, 12:51:38 PM (22 hours ago) Sep 25
    to AyeAye, Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Dale Curtis

    Sangbaek Park voted and added 1 comment

    Votes added by Sangbaek Park

    Commit-Queue+1

    1 comment

    File third_party/blink/renderer/platform/media/watch_time_reporter.h
    Line 159, Patchset 5 (Latest): // Updates whether HDR is enabled for the video.
    Dale Curtis . unresolved

    I don't think this is the right spot, color space is a secondary property, so it should be in the properties structure above. It only changes at the same time as the codec so they should be grouped together.

    Sangbaek Park

    I have another prototype with adding is_hdr boolean flag into `SecondaryPlaybackProperties`. Sounds like that approach is the right way?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:51:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dale Curtis (Gerrit)

    unread,
    Sep 25, 2025, 1:01:51 PM (22 hours ago) Sep 25
    to Sangbaek Park, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Dale Curtis added 1 comment

    File third_party/blink/renderer/platform/media/watch_time_reporter.h
    Line 159, Patchset 5 (Latest): // Updates whether HDR is enabled for the video.
    Dale Curtis . unresolved

    I don't think this is the right spot, color space is a secondary property, so it should be in the properties structure above. It only changes at the same time as the codec so they should be grouped together.

    Sangbaek Park

    I have another prototype with adding is_hdr boolean flag into `SecondaryPlaybackProperties`. Sounds like that approach is the right way?

    Dale Curtis

    Yup!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 17:01:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sangbaek Park <sangba...@chromium.org>
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Sep 25, 2025, 2:50:50 PM (20 hours ago) Sep 25
    to AyeAye, Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Dale Curtis

    Sangbaek Park added 1 comment

    File media/base/video_color_space.cc
    Line 67, Patchset 5 (Latest):bool VideoColorSpace::IsHdr() const {
    Dale Curtis . unresolved

    Lets match gfx::ColorSpace here. `IsHDR`

    Sangbaek Park
    This is gfx::ColorSpace::IsHDR's impl:
    ```
    bool ColorSpace::IsHDR() const {
    return transfer_ == TransferID::PQ || transfer_ == TransferID::HLG ||
    transfer_ == TransferID::LINEAR_HDR ||
    transfer_ == TransferID::SRGB_HDR ||
    transfer_ == TransferID::CUSTOM_HDR ||
    transfer_ == TransferID::SCRGB_LINEAR_80_NITS;
    }
    ```
    And we conver from gfx::ColorSpace in [VideoColorSpace::FromGfxColorSpace()](https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_color_space.cc;drc=a1e73d6ea7d3340382cf5539c54a55cc784e9a78;l=99). We ignore all other TransferID types (LINEAR_HDR,SRGB_HDR,CUSTOM_HDR,SCRGB_LINEAR_80_NITS) but PG & HLG as below:
    ```
    case gfx::ColorSpace::TransferID::PQ:
    transfer = VideoColorSpace::TransferID::SMPTEST2084;
    break;
    case gfx::ColorSpace::TransferID::HLG:
    transfer = VideoColorSpace::TransferID::ARIB_STD_B67;
    break;
    ```

    So the current code is matched. But, do you think we need to update `VideoColorSpace::FromGfxColorSpace()`?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 18:50:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dale Curtis (Gerrit)

    unread,
    Sep 25, 2025, 4:02:07 PM (19 hours ago) Sep 25
    to Sangbaek Park, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Dale Curtis added 1 comment

    File media/base/video_color_space.cc
    Line 67, Patchset 5 (Latest):bool VideoColorSpace::IsHdr() const {
    Dale Curtis . unresolved

    Lets match gfx::ColorSpace here. `IsHDR`

    Sangbaek Park
    This is gfx::ColorSpace::IsHDR's impl:
    ```
    bool ColorSpace::IsHDR() const {
    return transfer_ == TransferID::PQ || transfer_ == TransferID::HLG ||
    transfer_ == TransferID::LINEAR_HDR ||
    transfer_ == TransferID::SRGB_HDR ||
    transfer_ == TransferID::CUSTOM_HDR ||
    transfer_ == TransferID::SCRGB_LINEAR_80_NITS;
    }
    ```
    And we conver from gfx::ColorSpace in [VideoColorSpace::FromGfxColorSpace()](https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_color_space.cc;drc=a1e73d6ea7d3340382cf5539c54a55cc784e9a78;l=99). We ignore all other TransferID types (LINEAR_HDR,SRGB_HDR,CUSTOM_HDR,SCRGB_LINEAR_80_NITS) but PG & HLG as below:
    ```
    case gfx::ColorSpace::TransferID::PQ:
    transfer = VideoColorSpace::TransferID::SMPTEST2084;
    break;
    case gfx::ColorSpace::TransferID::HLG:
    transfer = VideoColorSpace::TransferID::ARIB_STD_B67;
    break;
    ```

    So the current code is matched. But, do you think we need to update `VideoColorSpace::FromGfxColorSpace()`?

    Dale Curtis

    I just meant the spelling of the method name should be `HDR` instead of `Hdr`. Technically we don't need a new method since you can just use `ToGfxColorSpace().IsHDR()`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 20:01:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Sep 25, 2025, 9:50:27 PM (13 hours ago) Sep 25
    to Chromium IPC Reviews, Evan Liu, Tomas Gunnarsson, AyeAye, Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Chromium IPC Reviews, Dale Curtis, Evan Liu and Tomas Gunnarsson

    Sangbaek Park added 4 comments

    File media/base/video_color_space.cc
    Line 67, Patchset 5:bool VideoColorSpace::IsHdr() const {
    Dale Curtis . resolved

    Lets match gfx::ColorSpace here. `IsHDR`

    Sangbaek Park
    This is gfx::ColorSpace::IsHDR's impl:
    ```
    bool ColorSpace::IsHDR() const {
    return transfer_ == TransferID::PQ || transfer_ == TransferID::HLG ||
    transfer_ == TransferID::LINEAR_HDR ||
    transfer_ == TransferID::SRGB_HDR ||
    transfer_ == TransferID::CUSTOM_HDR ||
    transfer_ == TransferID::SCRGB_LINEAR_80_NITS;
    }
    ```
    And we conver from gfx::ColorSpace in [VideoColorSpace::FromGfxColorSpace()](https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_color_space.cc;drc=a1e73d6ea7d3340382cf5539c54a55cc784e9a78;l=99). We ignore all other TransferID types (LINEAR_HDR,SRGB_HDR,CUSTOM_HDR,SCRGB_LINEAR_80_NITS) but PG & HLG as below:
    ```
    case gfx::ColorSpace::TransferID::PQ:
    transfer = VideoColorSpace::TransferID::SMPTEST2084;
    break;
    case gfx::ColorSpace::TransferID::HLG:
    transfer = VideoColorSpace::TransferID::ARIB_STD_B67;
    break;
    ```

    So the current code is matched. But, do you think we need to update `VideoColorSpace::FromGfxColorSpace()`?

    Dale Curtis

    I just meant the spelling of the method name should be `HDR` instead of `Hdr`. Technically we don't need a new method since you can just use `ToGfxColorSpace().IsHDR()`

    Sangbaek Park

    Oh, I see. Done

    File media/mojo/services/watch_time_recorder_unittest.cc
    Line 2273, Patchset 5: constexpr base::TimeDelta kWatchTime = base::Seconds(25);
    Dale Curtis . resolved

    This set of actions doesn't reflect real usage. Can we rework into a couple tests instead?

    Sangbaek Park

    Done

    File third_party/blink/renderer/platform/media/watch_time_reporter.h
    Line 159, Patchset 5: // Updates whether HDR is enabled for the video.
    Dale Curtis . resolved

    I don't think this is the right spot, color space is a secondary property, so it should be in the properties structure above. It only changes at the same time as the codec so they should be grouped together.

    Sangbaek Park

    I have another prototype with adding is_hdr boolean flag into `SecondaryPlaybackProperties`. Sounds like that approach is the right way?

    Dale Curtis

    Yup!

    Sangbaek Park

    Done. Thanks for the suggestion!

    File third_party/blink/renderer/platform/media/web_media_player_impl.cc
    Line 2523, Patchset 5: if (codec_change || codec_profile_change)
    Dale Curtis . resolved

    Now this should be `|| hdr_changed`

    Sangbaek Park

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Chromium IPC Reviews
    • Dale Curtis
    • Evan Liu
    • Tomas Gunnarsson
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 7
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Evan Liu <ev...@google.com>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
    Gerrit-Attention: Evan Liu <ev...@google.com>
    Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 01:50:17 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    gwsq (Gerrit)

    unread,
    Sep 25, 2025, 9:51:10 PM (13 hours ago) Sep 25
    to Sangbaek Park, Chromium IPC Reviews, Evan Liu, Tomas Gunnarsson, AyeAye, Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, tommyw+w...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Dale Curtis, Evan Liu, Nasko Oskov and Tomas Gunnarsson

    Message from gwsq

    From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
    IPC: na...@chromium.org

    📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

    IPC reviewer(s): na...@chromium.org


    Reviewer source(s):
    na...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    • Evan Liu
    • Nasko Oskov
    • Tomas Gunnarsson
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: I778cd63eff6b57856792887cd92fec46d481a160
    Gerrit-Change-Number: 6980599
    Gerrit-PatchSet: 7
    Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Evan Liu <ev...@google.com>
    Gerrit-Reviewer: Nasko Oskov <na...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Nasko Oskov <na...@chromium.org>
    Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
    Gerrit-Attention: Evan Liu <ev...@google.com>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Sep 2025 01:51:02 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Evan Liu (Gerrit)

    unread,
    12:13 AM (11 hours ago) 12:13 AM
    to Sangbaek Park, Chromium IPC Reviews, Tomas Gunnarsson, AyeAye, Dale Curtis, Chromium LUCI CQ, AI Code Reviewer, Chromium Metrics Reviews, chromium...@chromium.org, tommyw+w...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-...@chromium.org, erickun...@chromium.org, feature-me...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Dale Curtis, Nasko Oskov, Sangbaek Park and Tomas Gunnarsson

    Evan Liu voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    • Nasko Oskov
    • Sangbaek Park
    • Tomas Gunnarsson
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      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: I778cd63eff6b57856792887cd92fec46d481a160
      Gerrit-Change-Number: 6980599
      Gerrit-PatchSet: 7
      Gerrit-Owner: Sangbaek Park <sangba...@chromium.org>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Evan Liu <ev...@google.com>
      Gerrit-Reviewer: Nasko Oskov <na...@chromium.org>
      Gerrit-Reviewer: Sangbaek Park <sangba...@chromium.org>
      Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Xiaohan Wang <xhw...@chromium.org>
      Gerrit-CC: gwsq
      Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
      Gerrit-Attention: Nasko Oskov <na...@chromium.org>
      Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
      Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
      Gerrit-Comment-Date: Fri, 26 Sep 2025 04:13:17 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages