Lines Matching defs:opacity
287 // TODO: when both a filter and opacity are present, we can apply both with a single layer
296 // - stop-opacity
298 // - flood-opacity
302 void SkSVGRenderContext::applyOpacity(SkScalar opacity, uint32_t flags, bool hasFilter) {
303 if (opacity >= 1) {
311 // We can apply the opacity as paint alpha if it only affects one atomic draw.
318 fDeferredPaintOpacity *= opacity;
322 opacityPaint.setAlphaf(SkTPin(opacity, 0.0f, 1.0f));
457 // We observe 3 opacity components:
458 // - initial paint server opacity (e.g. color stop opacity)
459 // - paint-specific opacity (e.g. 'fill-opacity', 'stroke-opacity')
460 // - deferred opacity override (optimization for leaf nodes 'opacity')