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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 92703003: Support videos with JPEG color range in GPU YUV convert path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yuv_v2
Patch Set: Add missing 'f' to float literal to make VS happy Created 6 years, 8 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 | « content/common/cc_messages.h ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index 09ad85c8e7936fdc183ffbe558563cd4754a84f0..546fe3081f29a79adf1543e006e4941ac51e60e3 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -200,6 +200,7 @@ class CCMessagesTest : public testing::Test {
EXPECT_EQ(a->u_plane_resource_id, b->u_plane_resource_id);
EXPECT_EQ(a->v_plane_resource_id, b->v_plane_resource_id);
EXPECT_EQ(a->a_plane_resource_id, b->a_plane_resource_id);
+ EXPECT_EQ(a->color_space, b->color_space);
}
void Compare(const TransferableResource& a, const TransferableResource& b) {
@@ -259,6 +260,8 @@ TEST_F(CCMessagesTest, AllQuads) {
ResourceProvider::ResourceId arbitrary_resourceid3 = 23;
ResourceProvider::ResourceId arbitrary_resourceid4 = 16;
SkScalar arbitrary_sigma = SkFloatToScalar(2.0f);
+ YUVVideoDrawQuad::ColorSpace arbitrary_color_space =
+ YUVVideoDrawQuad::REC_601;
FilterOperations arbitrary_filters1;
arbitrary_filters1.Append(FilterOperation::CreateGrayscaleFilter(
@@ -430,7 +433,8 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_resourceid1,
arbitrary_resourceid2,
arbitrary_resourceid3,
- arbitrary_resourceid4);
+ arbitrary_resourceid4,
+ arbitrary_color_space);
scoped_ptr<DrawQuad> yuvvideo_cmp = yuvvideo_in->Copy(
yuvvideo_in->shared_quad_state);
« no previous file with comments | « content/common/cc_messages.h ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698