30 LayerInfo* layer_info)
const {
31 layer_info->fSize =
SkSize::Make(ParseDefault<float>(jlayer[
"sw"], 0.0f),
32 ParseDefault<float>(jlayer[
"sh"], 0.0f));
35 if (layer_info->fSize.isEmpty() ||
37 *hex_str->
begin() !=
'#' ||
46 solid_paint->setAntiAlias(
true);
50 std::move(solid_paint));
static const char * FindHex(const char str[], uint32_t *value)
const char * begin() const
bool dispatchColorProperty(const sk_sp< sksg::Color > &) const
void log(Logger::Level, const skjson::Value *, const char fmt[],...) const SK_PRINTF_LIKE(4
static sk_sp< Color > Make(SkColor c)
static sk_sp< Draw > Make(sk_sp< GeometryNode > geo, sk_sp< PaintNode > paint)
static sk_sp< Rect > Make()
static constexpr SkRect MakeSize(const SkSize &size)
static constexpr SkSize Make(SkScalar w, SkScalar h)