| Index: src/images/SkPNGImageEncoder.cpp
|
| diff --git a/src/images/SkPNGImageEncoder.cpp b/src/images/SkPNGImageEncoder.cpp
|
| index 1932e66dc6ae33ae968e958647ac037371eb890f..c3df5d10a874e5243b94d84c16b2e6f375aeb910 100644
|
| --- a/src/images/SkPNGImageEncoder.cpp
|
| +++ b/src/images/SkPNGImageEncoder.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "SkColorPriv.h"
|
| #include "SkDither.h"
|
| #include "SkMath.h"
|
| +#include "SkRTConf.h"
|
| #include "SkStream.h"
|
| #include "SkTemplates.h"
|
| #include "SkUtils.h"
|
| @@ -35,9 +36,11 @@
|
| #endif
|
|
|
| #define DEFAULT_FOR_SUPPRESS_PNG_IMAGE_DECODER_WARNINGS true
|
| -// Suppress most PNG warnings when calling image decode functions.
|
| -static const bool c_suppressPNGImageDecoderWarnings{
|
| - DEFAULT_FOR_SUPPRESS_PNG_IMAGE_DECODER_WARNINGS};
|
| +SK_CONF_DECLARE(bool, c_suppressPNGImageDecoderWarnings,
|
| + "images.png.suppressDecoderWarnings",
|
| + DEFAULT_FOR_SUPPRESS_PNG_IMAGE_DECODER_WARNINGS,
|
| + "Suppress most PNG warnings when calling image decode "
|
| + "functions.");
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|