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

Unified Diff: media/base/video_frame_unittest.cc

Issue 1134643002: Add distinction between RGB and RGBA native texture video frames and resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/video_frame_unittest.cc
diff --git a/media/base/video_frame_unittest.cc b/media/base/video_frame_unittest.cc
index 5c2159f65f73a4f7d3bd7b271cadd8f4981f1952..49aee4619bf7990a8e823a9f4a218d5ab99265b1 100644
--- a/media/base/video_frame_unittest.cc
+++ b/media/base/video_frame_unittest.cc
@@ -259,7 +259,8 @@ TEST(VideoFrame, TextureNoLongerNeededCallbackIsCalled) {
gfx::Rect(10, 10), // visible_rect
gfx::Size(10, 10), // natural_size
base::TimeDelta(), // timestamp
- false); // allow_overlay
+ false, // allow_overlay
+ true); // has_alpha
}
// Nobody set a sync point to |frame|, so |frame| set |called_sync_point| to 0
// as default value.
@@ -300,7 +301,8 @@ TEST(VideoFrame, TextureNoLongerNeededCallbackAfterTakingAndReleasingMailbox) {
gfx::Rect(10, 10), // visible_rect
gfx::Size(10, 10), // natural_size
base::TimeDelta(), // timestamp
- false); // allow_overlay
+ false, // allow_overlay
+ true); // has_alpha
const gpu::MailboxHolder* mailbox_holder = frame->mailbox_holder();

Powered by Google App Engine
This is Rietveld 408576698