blob: adfb05ad933ba358dbdf963b019f82551d6e5fda [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_MONOGRAM_UTILS_H_
#define CHROME_BROWSER_UI_MONOGRAM_UTILS_H_
#include <string>
#include "third_party/skia/include/core/SkColor.h"
namespace gfx {
class Canvas;
}
namespace monogram {
// Draws a monogram in a colored circle on the passed-in `canvas`.
// |monogram_text| is a std::u16string in order to support 2 letter
// monograms.
void DrawMonogramInCanvas(gfx::Canvas* canvas,
int canvas_size,
int circle_size,
const std::u16string& monogram_text,
SkColor monoggram_color,
SkColor background_color);
} // namespace monogram
#endif // CHROME_BROWSER_UI_MONOGRAM_UTILS_H_