renderer: ++exception handling
Some checks are pending
Android / build_x86_64 (push) Waiting to run
Android / build_aarch64 (push) Waiting to run
iOS / build_x86_64 (push) Waiting to run
iOS / build_arm64 (push) Waiting to run
macOS / build (push) Waiting to run
macOS / compact_test (push) Waiting to run
macOS / unit_test (push) Waiting to run
Ubuntu / build (push) Waiting to run
Ubuntu / compact_test (push) Waiting to run
Ubuntu / unit_test (push) Waiting to run
Windows / build (push) Waiting to run
Windows / compact_test (push) Waiting to run
Windows / unit_test (push) Waiting to run

This commit is contained in:
Hermet Park 2025-07-09 15:17:52 +09:00 committed by Hermet Park
parent 295d20f915
commit 8390cb1def

View file

@ -399,6 +399,7 @@ Shape* Paint::clip() const noexcept
Result Paint::mask(Paint* target, MaskMethod method) noexcept
{
if (method > MaskMethod::Darken) return Result::InvalidArguments;
return pImpl->mask(target, method);
}
@ -428,6 +429,7 @@ uint8_t Paint::opacity() const noexcept
Result Paint::blend(BlendMethod method) noexcept
{
if (method > BlendMethod::HardMix) return Result::InvalidArguments;
//TODO: Remove later
if (method == BlendMethod::Hue || method == BlendMethod::Saturation || method == BlendMethod::Color || method == BlendMethod::Luminosity || method == BlendMethod::HardMix) return Result::NonSupport;
pImpl->blend(method);