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

Unified Diff: content/common/cc_messages.cc

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove files unrelated to cc/ Created 7 years, 10 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: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 4313e1a1175ad8c69ae2bb95d18f0803ea17706b..b7ea68754cd87433c375baf8166372326c242964 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -333,6 +333,9 @@ void ParamTraits<cc::RenderPass>::Write(
case cc::DrawQuad::YUV_VIDEO_CONTENT:
WriteParam(m, *cc::YUVVideoDrawQuad::MaterialCast(quad));
break;
+ case cc::DrawQuad::YUVA_VIDEO_CONTENT:
+ WriteParam(m, *cc::YUVAVideoDrawQuad::MaterialCast(quad));
+ break;
case cc::DrawQuad::INVALID:
break;
}
@@ -447,6 +450,9 @@ bool ParamTraits<cc::RenderPass>::Read(
case cc::DrawQuad::YUV_VIDEO_CONTENT:
draw_quad = ReadDrawQuad<cc::YUVVideoDrawQuad>(m, iter);
break;
+ case cc::DrawQuad::YUVA_VIDEO_CONTENT:
+ draw_quad = ReadDrawQuad<cc::YUVAVideoDrawQuad>(m, iter);
+ break;
case cc::DrawQuad::INVALID:
break;
}
@@ -526,6 +532,9 @@ void ParamTraits<cc::RenderPass>::Log(
case cc::DrawQuad::YUV_VIDEO_CONTENT:
LogParam(*cc::YUVVideoDrawQuad::MaterialCast(quad), l);
break;
+ case cc::DrawQuad::YUVA_VIDEO_CONTENT:
+ LogParam(*cc::YUVAVideoDrawQuad::MaterialCast(quad), l);
+ break;
case cc::DrawQuad::INVALID:
break;
}

Powered by Google App Engine
This is Rietveld 408576698