#include <SkPicturePriv.h>
|
enum | Version {
kPictureShaderFilterParam_Version = 82
, kMatrixImageFilterSampling_Version = 83
, kImageFilterImageSampling_Version = 84
, kNoFilterQualityShaders_Version = 85
,
kVerticesRemoveCustomData_Version = 86
, kSkBlenderInSkPaint = 87
, kBlenderInEffects = 88
, kNoExpandingClipOps = 89
,
kBackdropScaleFactor = 90
, kRawImageShaders = 91
, kAnisotropicFilter = 92
, kBlend4fColorFilter = 93
,
kNoShaderLocalMatrix = 94
, kShaderImageFilterSerializeShader = 95
, kRevampMagnifierFilter = 96
, kRuntimeImageFilterSampleRadius = 97
,
kCombineBlendArithmeticFilters = 98
, kRemoveLegacyMagnifierFilter = 99
, kDropShadowImageFilterComposition = 100
, kCropImageFilterSupportsTiling = 101
,
kConvolutionImageFilterTilingUpdate = 102
, kRemoveDeprecatedCropRect = 103
, kMultipleFiltersOnSaveLayer = 104
, kMin_Version = kPictureShaderFilterParam_Version
,
kCurrent_Version = kMultipleFiltersOnSaveLayer
} |
|
Definition at line 18 of file SkPicturePriv.h.
◆ Version
Enumerator |
---|
kPictureShaderFilterParam_Version | |
kMatrixImageFilterSampling_Version | |
kImageFilterImageSampling_Version | |
kNoFilterQualityShaders_Version | |
kVerticesRemoveCustomData_Version | |
kSkBlenderInSkPaint | |
kBlenderInEffects | |
kNoExpandingClipOps | |
kBackdropScaleFactor | |
kRawImageShaders | |
kAnisotropicFilter | |
kBlend4fColorFilter | |
kNoShaderLocalMatrix | |
kShaderImageFilterSerializeShader | |
kRevampMagnifierFilter | |
kRuntimeImageFilterSampleRadius | |
kCombineBlendArithmeticFilters | |
kRemoveLegacyMagnifierFilter | |
kDropShadowImageFilterComposition | |
kCropImageFilterSupportsTiling | |
kConvolutionImageFilterTilingUpdate | |
kRemoveDeprecatedCropRect | |
kMultipleFiltersOnSaveLayer | |
kMin_Version | |
kCurrent_Version | |
Definition at line 119 of file SkPicturePriv.h.
119 {
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
168 };
@ kDropShadowImageFilterComposition
@ kCropImageFilterSupportsTiling
@ kVerticesRemoveCustomData_Version
@ kRemoveDeprecatedCropRect
@ kRuntimeImageFilterSampleRadius
@ kPictureShaderFilterParam_Version
@ kConvolutionImageFilterTilingUpdate
@ kImageFilterImageSampling_Version
@ kShaderImageFilterSerializeShader
@ kNoFilterQualityShaders_Version
@ kMultipleFiltersOnSaveLayer
@ kRemoveLegacyMagnifierFilter
@ kCombineBlendArithmeticFilters
@ kMatrixImageFilterSampling_Version
◆ AddedToCache()
static void SkPicturePriv::AddedToCache |
( |
const SkPicture * |
pic | ) |
|
|
inlinestatic |
Definition at line 45 of file SkPicturePriv.h.
45 {
46 pic->fAddedToCache.store(true);
47 }
◆ AsSkBigPicture()
Definition at line 36 of file SkPicturePriv.h.
36 {
38 }
virtual const class SkBigPicture * asSkBigPicture() const
sk_sp< const SkPicture > picture
◆ Flatten()
Serialize to a buffer.
Definition at line 314 of file SkPicture.cpp.
314 {
316 std::unique_ptr<SkPictureData>
data(
picture->backport());
317
321
325 buffer.writePad32(custom->data(), size);
326 return;
327 }
328
329 if (data) {
332 } else {
334 }
335}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static sk_sp< SkData > custom_serialize(const SkPicture *picture, const SkSerialProcs &procs)
constexpr int32_t SkToS32(S x)
static const uint8_t buffer[]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ MakeFromBuffer()
Recreate a picture that was serialized into a buffer. If the creation requires bitmap decoding, the decoder must be set on the SkReadBuffer parameter by calling SkReadBuffer::setBitmapDecoder() before calling SkPicture::MakeFromBuffer().
- Parameters
-
buffer | Serialized picture data. |
- Returns
- A new SkPicture representing the serialized data, or NULL if the buffer is invalid.
Definition at line 213 of file SkPicture.cpp.
213 {
215 if (!SkPicture::BufferIsSKP(&
buffer, &
info)) {
216 return nullptr;
217 }
218
219 int32_t ssize =
buffer.read32();
220 if (ssize < 0) {
223 return nullptr;
224 }
227 }
228 if (ssize != 1) {
229
230 return nullptr;
231 }
234}
static size_t sk_negate_to_size_t(int32_t value)
static SkPictureData * CreateFromBuffer(SkReadBuffer &, const SkPictInfo &)
SkDeserialPictureProc fPictureProc
◆ MakeSharedID()
static uint64_t SkPicturePriv::MakeSharedID |
( |
uint32_t |
pictureID | ) |
|
|
inlinestatic |
Definition at line 40 of file SkPicturePriv.h.
40 {
42 return (sharedID << 32) | pictureID;
43 }
static constexpr SkFourByteTag SkSetFourByteTag(char a, char b, char c, char d)
The documentation for this class was generated from the following files: