Implement MediaVideoVisibilityTracker RecordVideoOcclusionState method [chromium/src : main]

0 views
Skip to first unread message

Dale Curtis (Gerrit)

unread,
Jul 19, 2024, 5:33:50 PM (8 days ago) Jul 19
to Benjamin Keen, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Attention needed from Benjamin Keen

Dale Curtis added 8 comments

File third_party/blink/renderer/core/html/media/html_video_element_test.cc
Line 77, Patchset 4 (Latest): DCHECK(video_->visibility_tracker_for_tests());
Dale Curtis . resolved
Line 273, Patchset 4 (Latest): EXPECT_CALL((*MockMediaPlayer()), RecordVideoOcclusionState(_));
Dale Curtis . unresolved

Probably you want to verify the right occlusion state is sent?

Line 315, Patchset 4 (Latest): EXPECT_CALL((*MockMediaPlayer()), RecordVideoOcclusionState(_));
Dale Curtis . unresolved

Ditto.

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 269, Patchset 4 (Latest): occluding_rects_stream << "[" << "x: " << rect.x() << ", "
Dale Curtis . unresolved

base::StringPrintf?

Line 278, Patchset 4 (Latest): if (occluding_rects_stream.str().empty()) {
Dale Curtis . unresolved

.str() emits the string, so I think you want `.tellp() == 0`?

Line 282, Patchset 4 (Latest): std::ostringstream has_sufficiently_visible_video_stream;
Dale Curtis . unresolved

Just std::string?

Line 291, Patchset 4 (Latest): : base::StrCat(
Dale Curtis . unresolved

base::StringPrintf?

Line 305, Patchset 4 (Latest): : base::StrCat(
Dale Curtis . unresolved

StringPrintf?

Open in Gerrit

Related details

Attention is currently required from:
  • Benjamin Keen
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: I8863cb2734a4207603373b1de32328eae54e2434
Gerrit-Change-Number: 5692441
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Benjamin Keen <bk...@google.com>
Gerrit-Comment-Date: Fri, 19 Jul 2024 21:33:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Benjamin Keen (Gerrit)

unread,
Jul 19, 2024, 9:36:15 PM (8 days ago) Jul 19
to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Attention needed from Dale Curtis

Benjamin Keen added 7 comments

File third_party/blink/renderer/core/html/media/html_video_element_test.cc
Line 273, Patchset 4: EXPECT_CALL((*MockMediaPlayer()), RecordVideoOcclusionState(_));
Dale Curtis . resolved

Probably you want to verify the right occlusion state is sent?

Benjamin Keen

Hmmm, I was mainly interested in the function call happening at the right time. Since its a string it may be annoying to keep the test up to date anytime the string changes.

That said, I've added the verification, there is value in making sure the string matches what's expected.

Line 315, Patchset 4: EXPECT_CALL((*MockMediaPlayer()), RecordVideoOcclusionState(_));
Dale Curtis . resolved

Ditto.

Benjamin Keen

Done

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 269, Patchset 4: occluding_rects_stream << "[" << "x: " << rect.x() << ", "
Dale Curtis . resolved

base::StringPrintf?

Benjamin Keen

Regretfully usage of `base::StringPrintf()` is banned, and `absl::StrFormat` is not yet allowed [1].

[1]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++-features.md#string-formatting-banned.

Line 278, Patchset 4: if (occluding_rects_stream.str().empty()) {
Dale Curtis . resolved

.str() emits the string, so I think you want `.tellp() == 0`?

Benjamin Keen

I used `str().empty()` just to make it more readable. Updated to your suggestion, to avoid emitting the string.

Line 282, Patchset 4: std::ostringstream has_sufficiently_visible_video_stream;
Dale Curtis . resolved

Just std::string?

Benjamin Keen

Done

Line 291, Patchset 4: : base::StrCat(
Dale Curtis . resolved

base::StringPrintf?

Benjamin Keen

See first comment on this file.

Line 305, Patchset 4: : base::StrCat(
Dale Curtis . resolved

StringPrintf?

Benjamin Keen

See first comment on this file.

Open in Gerrit

Related details

Attention is currently required from:
  • Dale Curtis
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: I8863cb2734a4207603373b1de32328eae54e2434
Gerrit-Change-Number: 5692441
Gerrit-PatchSet: 5
Gerrit-Owner: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
Gerrit-Comment-Date: Sat, 20 Jul 2024 01:36:06 +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,
Jul 22, 2024, 12:04:47 PM (5 days ago) Jul 22
to Benjamin Keen, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Attention needed from Benjamin Keen

Dale Curtis added 1 comment

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 269, Patchset 4: occluding_rects_stream << "[" << "x: " << rect.x() << ", "
Dale Curtis . unresolved

base::StringPrintf?

Benjamin Keen

Regretfully usage of `base::StringPrintf()` is banned, and `absl::StrFormat` is not yet allowed [1].

[1]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++-features.md#string-formatting-banned.

Dale Curtis

Where do you see that StringPrintf is banned? It may need a non-blink function exception:
https://source.chromium.org/search?q=base::StringPrintf%20file:third_party%2Fblink%20-f:debug&sq=&ss=chromium

Open in Gerrit

Related details

Attention is currently required from:
  • Benjamin Keen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • 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: I8863cb2734a4207603373b1de32328eae54e2434
    Gerrit-Change-Number: 5692441
    Gerrit-PatchSet: 5
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Benjamin Keen <bk...@google.com>
    Gerrit-Comment-Date: Mon, 22 Jul 2024 16:04:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    Comment-In-Reply-To: Benjamin Keen <bk...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Benjamin Keen (Gerrit)

    unread,
    Jul 22, 2024, 3:14:44 PM (5 days ago) Jul 22
    to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Dale Curtis

    Benjamin Keen added 1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Line 269, Patchset 4: occluding_rects_stream << "[" << "x: " << rect.x() << ", "
    Dale Curtis . resolved

    base::StringPrintf?

    Benjamin Keen

    Regretfully usage of `base::StringPrintf()` is banned, and `absl::StrFormat` is not yet allowed [1].

    [1]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++-features.md#string-formatting-banned.

    Dale Curtis

    Where do you see that StringPrintf is banned? It may need a non-blink function exception:
    https://source.chromium.org/search?q=base::StringPrintf%20file:third_party%2Fblink%20-f:debug&sq=&ss=chromium

    Benjamin Keen

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • 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: I8863cb2734a4207603373b1de32328eae54e2434
    Gerrit-Change-Number: 5692441
    Gerrit-PatchSet: 6
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Mon, 22 Jul 2024 19:14:36 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dale Curtis (Gerrit)

    unread,
    Jul 22, 2024, 3:37:59 PM (5 days ago) Jul 22
    to Benjamin Keen, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Benjamin Keen

    Dale Curtis voted and added 1 comment

    Votes added by Dale Curtis

    Code-Review+1

    1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Line 268, Patchset 6 (Latest): const auto& rect = gfx::SkIRectToRect(occluding_rects[i]);
    Dale Curtis . unresolved

    FWIW, Rect.ToString() exists. Not sure if you intentionally chose this format though.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Benjamin Keen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I8863cb2734a4207603373b1de32328eae54e2434
    Gerrit-Change-Number: 5692441
    Gerrit-PatchSet: 6
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Benjamin Keen <bk...@google.com>
    Gerrit-Comment-Date: Mon, 22 Jul 2024 19:37:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Benjamin Keen (Gerrit)

    unread,
    Jul 22, 2024, 3:58:57 PM (5 days ago) Jul 22
    to Jeremy Roman, Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Jeremy Roman

    Benjamin Keen added 1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Line 268, Patchset 6 (Latest): const auto& rect = gfx::SkIRectToRect(occluding_rects[i]);
    Dale Curtis . resolved

    FWIW, Rect.ToString() exists. Not sure if you intentionally chose this format though.

    Benjamin Keen

    Yes! However it wraps the string in quotes, so I opted for formatting it here instead.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jeremy Roman
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • 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: I8863cb2734a4207603373b1de32328eae54e2434
    Gerrit-Change-Number: 5692441
    Gerrit-PatchSet: 6
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Jeremy Roman <jbr...@chromium.org>
    Gerrit-Comment-Date: Mon, 22 Jul 2024 19:58:48 +0000
    satisfied_requirement
    open
    diffy

    Jeremy Roman (Gerrit)

    unread,
    Jul 22, 2024, 4:10:20 PM (5 days ago) Jul 22
    to Benjamin Keen, Jeremy Roman, Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Benjamin Keen

    Jeremy Roman added 1 comment

    File third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py
    Line 1530, Patchset 6 (Latest): 'third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc',
    Jeremy Roman . unresolved

    Is this just for base::StringPrintf? Why not use the WTF formatting utilities (e.g., String::Format, the + operator on WTF::String, String::Number), like is usual in Blink?

    Even if we did need to pass this as a UTF-8 string view rather than using WebString across the Blink API, StringUTF8Adaptor should work for that.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Benjamin Keen
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Mon, 22 Jul 2024 20:10:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dale Curtis (Gerrit)

      unread,
      Jul 22, 2024, 4:30:15 PM (5 days ago) Jul 22
      to Benjamin Keen, Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
      Attention needed from Benjamin Keen and Jeremy Roman

      Dale Curtis added 1 comment

      File third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py
      Line 1530, Patchset 6 (Latest): 'third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc',
      Jeremy Roman . unresolved

      Is this just for base::StringPrintf? Why not use the WTF formatting utilities (e.g., String::Format, the + operator on WTF::String, String::Number), like is usual in Blink?

      Even if we did need to pass this as a UTF-8 string view rather than using WebString across the Blink API, StringUTF8Adaptor should work for that.

      Dale Curtis

      Ah right, sorry for leading you astray Ben, I forgot about String::Format.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Benjamin Keen
      • Jeremy Roman
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Jeremy Roman <jbr...@chromium.org>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Mon, 22 Jul 2024 20:30:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Jeremy Roman <jbr...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Benjamin Keen (Gerrit)

      unread,
      Jul 22, 2024, 6:23:16 PM (5 days ago) Jul 22
      to Jeremy Roman, Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org

      Benjamin Keen added 1 comment

      File third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py
      Line 1530, Patchset 6: 'third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc',
      Jeremy Roman . resolved

      Is this just for base::StringPrintf? Why not use the WTF formatting utilities (e.g., String::Format, the + operator on WTF::String, String::Number), like is usual in Blink?

      Even if we did need to pass this as a UTF-8 string view rather than using WebString across the Blink API, StringUTF8Adaptor should work for that.

      Dale Curtis

      Ah right, sorry for leading you astray Ben, I forgot about String::Format.

      Benjamin Keen

      Yes, this is just for `base::StringPrintf`. No worries Dale, and thanks both for the review, now I'll know for next time that `String::Format` is the way to go in Blink :)

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 7
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-CC: Jeremy Roman <jbr...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Comment-Date: Mon, 22 Jul 2024 22:22:59 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
      Comment-In-Reply-To: Jeremy Roman <jbr...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dale Curtis (Gerrit)

      unread,
      Jul 22, 2024, 6:33:53 PM (5 days ago) Jul 22
      to Benjamin Keen, Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
      Attention needed from Benjamin Keen

      Dale Curtis voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Benjamin Keen
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 7
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-CC: Jeremy Roman <jbr...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Mon, 22 Jul 2024 22:33:41 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Benjamin Keen (Gerrit)

      unread,
      Jul 22, 2024, 8:01:03 PM (5 days ago) Jul 22
      to Dale Curtis, Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org

      Benjamin Keen voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 7
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-CC: Jeremy Roman <jbr...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Comment-Date: Tue, 23 Jul 2024 00:00:30 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jul 22, 2024, 8:03:21 PM (5 days ago) Jul 22
      to Benjamin Keen, Dale Curtis, Jeremy Roman, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      Implement MediaVideoVisibilityTracker RecordVideoOcclusionState method

      This CL implements the tracker RecordVideoOcclusionState method, which
      constructs the debug string and adds the log entry usning the MediaLog.

      Sample screenshots, when video is:
      * Sufficiently visible: http://screen/4Rzv4WqfEAiStNz
      * Not sufficiently visible: http://screen/B9AB3EXasjirv4N
      Bug: 40275580
      Change-Id: I8863cb2734a4207603373b1de32328eae54e2434
      Commit-Queue: Benjamin Keen <bk...@google.com>
      Reviewed-by: Dale Curtis <dalec...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1331442}
      Files:
      • M third_party/blink/renderer/core/html/media/html_video_element.h
      • M third_party/blink/renderer/core/html/media/html_video_element_test.cc
      • M third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
      • M third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
      Change size: M
      Delta: 4 files changed, 162 insertions(+), 1 deletion(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Dale Curtis
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8863cb2734a4207603373b1de32328eae54e2434
      Gerrit-Change-Number: 5692441
      Gerrit-PatchSet: 8
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages