Flutter Engine
The Flutter Engine
KeyContext.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2022 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
9
12
13namespace skgpu::graphite {
14
16 const SkM44& local2Dev,
17 const SkColorInfo& dstColorInfo,
18 OptimizeSampling optimizeSampling,
19 const SkColor4f& paintColor,
20 sk_sp<TextureProxy> dstTexture,
21 SkIPoint dstOffset)
22 : fRecorder(recorder)
23 , fLocal2Dev(local2Dev)
24 , fLocalMatrix(nullptr)
25 , fDstColorInfo(dstColorInfo)
26 , fOptimizeSampling(optimizeSampling)
27 , fCaps(recorder->priv().caps())
28 , fDstTexture(std::move(dstTexture))
29 , fDstOffset(dstOffset) {
34}
35
37 : fRecorder(other.fRecorder)
38 , fLocal2Dev(other.fLocal2Dev)
39 , fLocalMatrix(other.fLocalMatrix)
40 , fDictionary(other.fDictionary)
41 , fRTEffectDict(other.fRTEffectDict)
42 , fDstColorInfo(other.fDstColorInfo)
43 , fPaintColor(other.fPaintColor)
44 , fScope(other.fScope)
45 , fOptimizeSampling(other.fOptimizeSampling)
46 , fCaps(other.fCaps)
47 , fDstTexture(other.fDstTexture)
48 , fDstOffset(other.fDstOffset) {}
49
50} // namespace skgpu::graphite
Definition: SkM44.h:150
RuntimeEffectDictionary * fRTEffectDict
Definition: KeyContext.h:89
const SkPMColor4f & paintColor() const
Definition: KeyContext.h:74
KeyContext(const Caps *caps, ShaderCodeDictionary *dict, RuntimeEffectDictionary *rtEffectDict, const SkColorInfo &dstColorInfo, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset)
Definition: KeyContext.h:33
ShaderCodeDictionary * fDictionary
Definition: KeyContext.h:88
static SkColor4f Color4fPrepForDst(SkColor4f srgb, const SkColorInfo &dstColorInfo)
Definition: PaintParams.cpp:85
const RuntimeEffectDictionary * runtimeEffectDictionary() const
Definition: RecorderPriv.h:35
const ShaderCodeDictionary * shaderCodeDictionary() const
Definition: RecorderPriv.h:41
FlPixelBufferTexturePrivate * priv
Definition: ref_ptr.h:256
float fA
alpha component
Definition: SkColor.h:266