#include "components/services/app_service/public/cpp/app_shortcut_image.h"
#include "base/check.h"
#include "base/i18n/rtl.h"
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/image/image_skia.h"
namespace apps {
AppShortcutImage::AppShortcutImage(int main_icon_radius,
int teardrop_border_radius,
int badge_radius,
SkColor color,
const gfx::ImageSkia& main_icon_image,
const gfx::ImageSkia& badge_image)
: … { … }
void AppShortcutImage::Draw(gfx::Canvas* canvas) { … }
gfx::ImageSkia AppShortcutImage::CreateImageWithBadgeAndTeardropBackground(
int main_icon_radius,
int teardrop_corner_radius,
int badge_radius,
SkColor color,
const gfx::ImageSkia& main_icon_image,
const gfx::ImageSkia& badge_image) { … }
}