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

Unified Diff: cc/resources/video_resource_updater_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: Fix unit test breakage from bad merge 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
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater_unittest.cc
diff --git a/cc/resources/video_resource_updater_unittest.cc b/cc/resources/video_resource_updater_unittest.cc
index fa207abe7f9014ad4b9c8f4de04262e32ab00481..10f7fbdbbcf73a4db16b910ffb6be46940821583 100644
--- a/cc/resources/video_resource_updater_unittest.cc
+++ b/cc/resources/video_resource_updater_unittest.cc
@@ -125,7 +125,8 @@ class VideoResourceUpdaterTest : public testing::Test {
gfx::Rect(size), // visible_rect
size, // natural_size
base::TimeDelta(), // timestamp
- false); // allow_overlay
+ false, // allow_overlay
+ true); // has_alpha
}
scoped_refptr<media::VideoFrame> CreateTestYUVHardareVideoFrame() {
@@ -308,7 +309,7 @@ TEST_F(VideoResourceUpdaterTest, CreateForHardwarePlanes) {
VideoFrameExternalResources resources =
updater.CreateExternalResourcesFromVideoFrame(video_frame);
- EXPECT_EQ(VideoFrameExternalResources::RGB_RESOURCE, resources.type);
+ EXPECT_EQ(VideoFrameExternalResources::RGBA_RESOURCE, resources.type);
EXPECT_EQ(1u, resources.mailboxes.size());
EXPECT_EQ(1u, resources.release_callbacks.size());
EXPECT_EQ(0u, resources.software_resources.size());
« no previous file with comments | « cc/resources/video_resource_updater.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698