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

Unified Diff: media/base/video_frame.cc

Issue 2849006: Chromoting unit test: Adding DecoderVerbatimTest (Closed)
Patch Set: add file Created 10 years, 6 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 | « media/base/video_frame.h ('k') | remoting/client/decoder_verbatim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index a7eeb1e53799c00a0d551814acb9d26995f74887..fd684e7813bffd55f720ff8545c1b5955e7f71bb 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -38,6 +38,9 @@ void VideoFrame::CreateFrame(VideoFrame::Format format,
case VideoFrame::YV16:
alloc_worked = frame->AllocateYUV();
break;
+ case VideoFrame::ASCII:
+ alloc_worked = frame->AllocateRGB(1u);
+ break;
default:
NOTREACHED();
alloc_worked = false;
« no previous file with comments | « media/base/video_frame.h ('k') | remoting/client/decoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698