0

[//ppapi] Convert to Mailbox::Generate()

No functional change, as Mailbox::GenerateForSharedImage() is now an
alias for Mailbox::Generate().

Bug: 337538024, 40057997
Change-Id: I5b3637ea4c69a6775d209b720864c3dd4ff2ef13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5557181
Reviewed-by: Fabian Sommer <fabiansommer@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1304344}
This commit is contained in:
Colin Blundell
2024-05-22 11:09:56 +00:00
committed by Chromium LUCI CQ
parent bdfdf56402
commit d923c84f1e

@ -422,7 +422,7 @@ TEST_F(VideoDecoderResourceTest, DecodeAndGetPicture) {
CallGetPicture(decoder.get(), &picture, &uncalled_cb));
ASSERT_FALSE(uncalled_cb.called());
const auto mailbox1 = gpu::Mailbox::GenerateForSharedImage();
const auto mailbox1 = gpu::Mailbox::Generate();
// Send a shared image ready message for Decode call 1. The GetPicture
// callback should complete.
SendSharedImageReady(params, 1U, mailbox1);
@ -434,7 +434,7 @@ TEST_F(VideoDecoderResourceTest, DecodeAndGetPicture) {
// Send a shared image ready message for Decode call 2. Since there is no
// pending GetPicture call, the picture should be queued.
const auto mailbox2 = gpu::Mailbox::GenerateForSharedImage();
const auto mailbox2 = gpu::Mailbox::Generate();
SendSharedImageReady(params, 2U, mailbox2);
// The next GetPicture should return synchronously.
@ -468,7 +468,7 @@ TEST_F(VideoDecoderResourceTest, RecyclePicture) {
ASSERT_EQ(PP_OK_COMPLETIONPENDING,
CallGetPicture(decoder.get(), &picture, &get_picture_cb));
const auto mailbox = gpu::Mailbox::GenerateForSharedImage();
const auto mailbox = gpu::Mailbox::Generate();
SendSharedImageReady(params, 0U, mailbox);
CallRecyclePicture(decoder.get(), picture);
@ -494,7 +494,7 @@ TEST_F(VideoDecoderResourceTest, Flush) {
CheckDecodeMsg(&params, &shm_id, &decode_size, &decode_id);
SendDecodeReply(params, 0U);
gpu::Mailbox mailbox = gpu::Mailbox::GenerateForSharedImage();
gpu::Mailbox mailbox = gpu::Mailbox::Generate();
SendSharedImageReady(params, 0U, mailbox);
PP_VideoPicture picture;