Flutter Engine
The Flutter Engine
RuntimeBlendUtils.cpp
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
12
15 uniform blender b;
16 half4 main(half4 src, half4 dst) {
17 return b.eval(src, dst);
18 }
19 )"));
20
21 SkASSERTF(result.effect, "%s", result.errorText.c_str());
22
24 builder.child("b") = SkBlender::Mode(mode);
25 return builder.makeBlender();
26}
sk_sp< SkBlender > GetRuntimeBlendForBlendMode(SkBlendMode mode)
#define SkASSERTF(cond, fmt,...)
Definition: SkAssert.h:117
SkBlendMode
Definition: SkBlendMode.h:38
static sk_sp< SkBlender > Mode(SkBlendMode mode)
static Result MakeForBlender(SkString sksl, const Options &)
GAsyncResult * result
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228