diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-24 15:30:36 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-24 15:30:36 -0800 |
commit | c98895c6a9d0809c2780f5180fa8054eeba04b2b (patch) | |
tree | 86e2015bbe0ef54566898198d6df7d8900403b3c /samples/image_diff_png.cc | |
parent | 540c436dc8e7d7b700b448acc8536f5cf68d4b74 (diff) | |
download | pdfium-c98895c6a9d0809c2780f5180fa8054eeba04b2b.tar.xz |
Make xfa samples/ look more like master
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1476683002 .
Diffstat (limited to 'samples/image_diff_png.cc')
-rw-r--r-- | samples/image_diff_png.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/image_diff_png.cc b/samples/image_diff_png.cc index 992617d5e5..6ad7f88d81 100644 --- a/samples/image_diff_png.cc +++ b/samples/image_diff_png.cc @@ -219,6 +219,9 @@ void DecodeInfoCallback(png_struct* png_ptr, png_info* info_ptr) { state->row_converter = &ConvertRGBtoBGRA; state->output_channels = 4; break; + default: + NOTREACHED(); + break; } } else if (channels == 4) { switch (state->output_format) { @@ -234,6 +237,9 @@ void DecodeInfoCallback(png_struct* png_ptr, png_info* info_ptr) { state->row_converter = &ConvertBetweenBGRAandRGBA; state->output_channels = 4; break; + default: + NOTREACHED(); + break; } } else { NOTREACHED(); @@ -562,6 +568,10 @@ bool EncodeWithCompressionLevel(const unsigned char* input, ColorFormat format, converter = ConvertBetweenBGRAandRGBA; } break; + + default: + NOTREACHED(); + return false; } // Row stride should be at least as long as the length of the data. |