#include "extensions/common/image_util.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "base/timer/elapsed_timer.h"
#include "content/public/common/color_parser.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImage.h"
#include "ui/gfx/codec/png_codec.h"
namespace extensions::image_util {
bool IsIconSufficientlyVisible(const SkBitmap& bitmap) { … }
bool IsIconAtPathSufficientlyVisible(const base::FilePath& path) { … }
const SkColor kDefaultToolbarColor = …;
struct ScopedUmaMicrosecondHistogramTimer { … };
bool IsRenderedIconSufficientlyVisible(const SkBitmap& icon,
SkColor background_color) { … }
bool RenderIconForVisibilityAnalysis(const SkBitmap& icon,
SkColor background_color,
SkBitmap* rendered_icon) { … }
bool IsRenderedIconAtPathSufficientlyVisible(const base::FilePath& path,
SkColor background_color) { … }
bool LoadPngFromFile(const base::FilePath& path, SkBitmap* dst) { … }
}