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

Unified Diff: remoting/client/decoder_verbatim.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.cc ('k') | remoting/client/decoder_verbatim_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/decoder_verbatim.cc
diff --git a/remoting/client/decoder_verbatim.cc b/remoting/client/decoder_verbatim.cc
index 6d0f976f964d0d7b52d8a1822aaa204c5859ab51..69b04ae00cb5a7af9fd885a60e4cad065a9055ec 100644
--- a/remoting/client/decoder_verbatim.cc
+++ b/remoting/client/decoder_verbatim.cc
@@ -22,8 +22,8 @@ bool DecoderVerbatim::BeginDecode(scoped_refptr<media::VideoFrame> frame,
decode_done_.reset(decode_done);
updated_rects_ = updated_rects;
- // TODO(hclam): Check if we can accept the color format of the video frame and
- // the codec.
+ // TODO(hclam): Check if we can accept the color format of the video frame
+ // and the codec.
frame_ = frame;
return true;
}
@@ -46,7 +46,7 @@ bool DecoderVerbatim::PartialDecode(HostMessage* message) {
bytes_per_pixel = 2;
} else if (pixel_format == PixelFormatRgb32) {
bytes_per_pixel = 4;
- } else if (pixel_format != PixelFormatAscii) {
+ } else if (pixel_format == PixelFormatAscii) {
bytes_per_pixel = 1;
} else {
NOTREACHED() << "Pixel format not supported";
« no previous file with comments | « media/base/video_frame.cc ('k') | remoting/client/decoder_verbatim_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698