Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
RuntimeBlendUtils.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 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 RuntimeBlendUtils_DEFINED
9#define RuntimeBlendUtils_DEFINED
10
13
14class SkBlender;
15
16/**
17 * Returns a Runtime Effect-based blender which is equivalent to the passed-in SkBlendMode.
18 * This should generate the same output as the equivalent SkBlendMode operation, but always uses
19 * SkSL to perform the blend operation instead of relying on specialized/fixed-function code.
20 * This is useful for verifying that Runtime Blends are working as expected throughout the pipeline.
21 */
23
24#endif
sk_sp< SkBlender > GetRuntimeBlendForBlendMode(SkBlendMode mode)
SkBlendMode
Definition SkBlendMode.h:38