#include "ui/gfx/shadow_util.h"
#include <map>
#include <vector>
#include "base/lazy_instance.h"
#include "base/memory/ptr_util.h"
#include "third_party/skia/include/core/SkRRect.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/image/canvas_image_source.h"
#include "ui/gfx/shadow_value.h"
#include "ui/gfx/skia_paint_util.h"
namespace gfx {
namespace {
class ShadowNineboxSource : public CanvasImageSource { … };
struct ShadowDetailsKey { … };
ShadowDetailsMap;
base::LazyInstance<ShadowDetailsMap>::DestructorAtExit g_shadow_cache = …;
}
ShadowDetails::ShadowDetails(const gfx::ShadowValues& values,
const gfx::ImageSkia& nine_patch_image)
: … { … }
ShadowDetails::ShadowDetails(const ShadowDetails& other) = default;
ShadowDetails::~ShadowDetails() { … }
const ShadowDetails& ShadowDetails::Get(int elevation,
int corner_radius,
ShadowStyle style) { … }
const ShadowDetails& ShadowDetails::Get(int elevation,
int radius,
SkColor key_color,
SkColor ambient_color,
ShadowStyle style) { … }
const ShadowDetails& ShadowDetails::Get(int radius,
const gfx::ShadowValues& values) { … }
size_t ShadowDetails::GetDetailsCacheSizeForTest() { … }
}