DEPS include_rules no longer allows core/ -> fpsdfsk/ inclusion.
[pdfium.git] / samples / image_diff_png.cc
index a54dc81..4ece285 100644 (file)
@@ -17,7 +17,7 @@
 #include <string>
 
 #include "../third_party/base/logging.h"
-#include "../core/src/fxcodec/fx_zlib/include/fx_zlib.h"
+#include "../third_party/zlib_v128/zlib.h"
 #include "fx_lpng/include/fx_png.h"
 
 namespace image_diff_png {
@@ -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.