Definition at line 216 of file SkRecordOpts.cpp.
◆ Match
◆ KillSaveLayerAndRestore()
static bool SvgOpacityAndFilterLayerMergePass::KillSaveLayerAndRestore |
( |
SkRecord * |
record, |
|
|
int |
saveLayerIndex |
|
) |
| |
|
inlinestatic |
Definition at line 255 of file SkRecordOpts.cpp.
255 {
256 record->
replace<NoOp>(saveLayerIndex);
257 record->
replace<NoOp>(saveLayerIndex + 6);
258 return true;
259 }
◆ onMatch()
bool SvgOpacityAndFilterLayerMergePass::onMatch |
( |
SkRecord * |
record, |
|
|
Match * |
match, |
|
|
int |
begin, |
|
|
int |
end |
|
) |
| |
|
inline |
Definition at line 220 of file SkRecordOpts.cpp.
220 {
221 if (
match->first<SaveLayer>()->backdrop) {
222
223 return false;
224 }
225
226 if (!
match->first<SaveLayer>()->filters.empty() ||
227 !
match->fourth<SaveLayer>()->filters.empty()) {
228
229 return false;
230 }
231
233 if (nullptr == opacityPaint) {
234
236 }
237
238
239
241 if (filterLayerPaint == nullptr) {
242
243
244 return false;
245 }
246
248 filterLayerPaint)) {
249 return false;
250 }
251
253 }
static bool fold_opacity_layer_color_to_paint(const SkPaint *layerPaint, bool isSaveLayer, SkPaint *paint)
static const char * begin(const StringSlice &s)
static bool KillSaveLayerAndRestore(SkRecord *record, int saveLayerIndex)
The documentation for this struct was generated from the following file: