Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkColorFilterPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Google Inc.
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 SkColorFilterPriv_DEFINED
9#define SkColorFilterPriv_DEFINED
10
12
13class SkColorSpace;
14struct skcms_Matrix3x3;
16
18public:
20
21 // Make a color filter that will convert from src to dst.
24
25 // Runs the child filter in a different working color format than usual (premul in
26 // destination surface's color space), with all inputs and outputs expressed in this format.
27 // Each non-null {tf,gamut,at} parameter overrides that particular aspect of the color format.
29 const skcms_TransferFunction* tf,
30 const skcms_Matrix3x3* gamut,
31 const SkAlphaType* at);
32};
33
34#endif
SkAlphaType
Definition SkAlphaType.h:26
static sk_sp< SkColorFilter > WithWorkingFormat(sk_sp< SkColorFilter > child, const skcms_TransferFunction *tf, const skcms_Matrix3x3 *gamut, const SkAlphaType *at)
static sk_sp< SkColorFilter > MakeColorSpaceXform(sk_sp< SkColorSpace > src, sk_sp< SkColorSpace > dst)
static sk_sp< SkColorFilter > MakeGaussian()