Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 const SkColor4f& paintColor,
19 sk_sp<TextureProxy> dstTexture,
20 SkIPoint dstOffset)
21 : fRecorder(recorder)
22 , fLocal2Dev(local2Dev)
23 , fLocalMatrix(nullptr)
24 , fDstColorInfo(dstColorInfo)
25 , fCaps(recorder->priv().caps())
26 , fDstTexture(std::move(dstTexture))
27 , fDstOffset(dstOffset) {
32}
33
35 : fRecorder(other.fRecorder)
36 , fLocal2Dev(other.fLocal2Dev)
37 , fLocalMatrix(other.fLocalMatrix)
38 , fDictionary(other.fDictionary)
39 , fRTEffectDict(other.fRTEffectDict)
40 , fDstColorInfo(other.fDstColorInfo)
41 , fPaintColor(other.fPaintColor)
42 , fScope(other.fScope)
43 , fCaps(other.fCaps)
44 , fDstTexture(other.fDstTexture)
45 , fDstOffset(other.fDstOffset) {}
46
47} // namespace skgpu::graphite
Definition SkM44.h:150
RuntimeEffectDictionary * fRTEffectDict
Definition KeyContext.h:86
const SkPMColor4f & paintColor() const
Definition KeyContext.h:72
KeyContext(const Caps *caps, ShaderCodeDictionary *dict, RuntimeEffectDictionary *rtEffectDict, const SkColorInfo &dstColorInfo, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset)
Definition KeyContext.h:32
ShaderCodeDictionary * fDictionary
Definition KeyContext.h:85
static SkColor4f Color4fPrepForDst(SkColor4f srgb, const SkColorInfo &dstColorInfo)
const RuntimeEffectDictionary * runtimeEffectDictionary() const
const ShaderCodeDictionary * shaderCodeDictionary() const
FlPixelBufferTexturePrivate * priv
Definition ref_ptr.h:256
float fA
alpha component
Definition SkColor.h:266