| /* |
| * Copyright 2024 Google LLC |
| * |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #ifndef skgpu_graphite_FactoryFunctionsPriv_DEFINED |
| #define skgpu_graphite_FactoryFunctionsPriv_DEFINED |
| |
| #include "src/gpu/graphite/FactoryFunctions.h" |
| |
| namespace skgpu::graphite { |
| |
| class PrecompileShader; |
| |
| //-------------------------------------------------------------------------------------------------- |
| namespace PrecompileShadersPriv { |
| // TODO: This, technically, doesn't need to take an SkSpan since it is only called from |
| // PrecompileShader::makeWithCTM. Leaving it be for now in case the usage is revised. |
| sk_sp<PrecompileShader> CTM(SkSpan<const sk_sp<PrecompileShader>> wrapped); |
| } // namespace PrecompileShadersPriv |
| |
| namespace PrecompileColorFiltersPriv { |
| // These three match those in src/core/SkColorFilterPriv |
| sk_sp<PrecompileColorFilter> Gaussian(); |
| |
| sk_sp<PrecompileColorFilter> ColorSpaceXform(); |
| |
| sk_sp<PrecompileColorFilter> WithWorkingFormat( |
| SkSpan<const sk_sp<PrecompileColorFilter>> childOptions); |
| } // namespace PrecompileColorFiltersPriv |
| |
| } // namespace skgpu::graphite |
| |
| #endif // skgpu_graphite_FactoryFunctionsPriv_DEFINED |