#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
326 return;
327 }
328
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)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
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
std::shared_ptr< const fml::Mapping > data
◆ 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: