Add coeffecients for kScreen xfermode.
Review URL: https://codereview.chromium.org/14046021 git-svn-id: http://skia.googlecode.com/svn/trunk@8680 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
856b984c51
commit
b0091b8382
@ -104,13 +104,12 @@ public:
|
||||
kPlus_Mode, //!< [Sa + Da, Sc + Dc]
|
||||
kModulate_Mode, // multiplies all components (= alpha and color)
|
||||
|
||||
// all above modes can be expressed as pair of src/dst Coeffs
|
||||
kCoeffModesCnt,
|
||||
|
||||
// Following blend modes are defined in the CSS Compositing standard:
|
||||
// https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#blending
|
||||
kScreen_Mode = kCoeffModesCnt,
|
||||
kOverlay_Mode,
|
||||
kScreen_Mode,
|
||||
// all above modes can be expressed as pair of src/dst Coeffs
|
||||
kCoeffModesCnt,
|
||||
kOverlay_Mode = kCoeffModesCnt,
|
||||
kDarken_Mode,
|
||||
kLighten_Mode,
|
||||
kColorDodge_Mode,
|
||||
|
@ -653,7 +653,7 @@ static const ProcCoeff gProcCoeffs[] = {
|
||||
|
||||
{ plus_modeproc, SkXfermode::kOne_Coeff, SkXfermode::kOne_Coeff },
|
||||
{ modulate_modeproc,SkXfermode::kZero_Coeff, SkXfermode::kSC_Coeff },
|
||||
{ screen_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
|
||||
{ screen_modeproc, SkXfermode::kOne_Coeff, SkXfermode::kISC_Coeff },
|
||||
{ overlay_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
|
||||
{ darken_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
|
||||
{ lighten_modeproc, CANNOT_USE_COEFF, CANNOT_USE_COEFF },
|
||||
|
Loading…
Reference in New Issue
Block a user