Searched refs:opacity_to_alpha (Results 1 – 1 of 1) sorted by relevance
125 inline uint8_t opacity_to_alpha(SkScalar o) { in opacity_to_alpha() function153 pctx->fFillPaint.setAlpha(opacity_to_alpha(*attrs.fFillOpacity.get())); in commitToPaint()180 pctx->fStrokePaint.setAlpha(opacity_to_alpha(*attrs.fStrokeOpacity.get())); in commitToPaint()313 opacityPaint.setAlpha(opacity_to_alpha(opacity)); in applyOpacity()