16#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
21bool SkAndroidFrameworkUtils::clipWithStencil(
SkCanvas* canvas) {
26void SkAndroidFrameworkUtils::SafetyNetLog(
const char* bugNumber) {
27 android_errorWriteLog(0x534e4554, bugNumber);
35int SkAndroidFrameworkUtils::SaveBehind(
SkCanvas* canvas,
const SkRect* subset) {
36 return canvas->only_axis_aligned_saveBehind(subset);
39void SkAndroidFrameworkUtils::ResetClip(
SkCanvas* canvas) {
40 canvas->internal_private_resetClip();
48 pfc =
result->internal_private_asPaintFilterCanvas();
53bool SkAndroidFrameworkUtils::ShaderAsALinearGradient(
SkShader* shader,
54 LinearGradientInfo*
info) {
59 baseInfo->fColorCount =
info->fColorCount;
60 baseInfo->fColors =
info->fColors;
61 baseInfo->fColorOffsets =
info->fColorOffsets;
67 info->fColorCount = baseInfo->fColorCount;
68 info->fPoints[0] = baseInfo->fPoint[0];
69 info->fPoints[1] = baseInfo->fPoint[1];
70 info->fTileMode = baseInfo->fTileMode;
71 info->fGradientFlags = baseInfo->fGradientFlags;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static T * SkSafeRef(T *obj)
SkShaderBase * as_SB(SkShader *shader)
virtual SkPaintFilterCanvas * internal_private_asPaintFilterCanvas() const
virtual bool android_utils_clipWithStencil()
T * init(Args &&... args)
const T * getMaybeNull() const
static constexpr skcms_TransferFunction kLinear