Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkBlenders.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkBlenders_DEFINED
9#define SkBlenders_DEFINED
10
12
14public:
15 /**
16 * Create a blender that implements the following:
17 * k1 * src * dst + k2 * src + k3 * dst + k4
18 * @param k1, k2, k3, k4 The four coefficients.
19 * @param enforcePMColor If true, the RGB channels will be clamped to the calculated alpha.
20 */
21 static sk_sp<SkBlender> Arithmetic(float k1, float k2, float k3, float k4, bool enforcePremul);
22
23private:
24 SkBlenders() = delete;
25};
26
27#endif
#define SK_API
Definition SkAPI.h:35