diff options
author | egdaniel <egdaniel@google.com> | 2015-11-20 14:01:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-20 14:01:07 -0800 |
commit | a7006d45217d128a94fa53cb4b827cca79bc7049 (patch) | |
tree | bc66f96e8ef988078ea8ee752006c9debaef32b2 /src/core | |
parent | 8b78bd6d5b39fe8ef407c4b59b1be8421e58d665 (diff) |
Make specialized SrcOver XPFactory
BUG=skia:
Review URL: https://codereview.chromium.org/1455273006
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkXfermode.cpp | 8 | ||||
-rw-r--r-- | src/core/SkXfermode_proccoeff.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp index 9083814d1a..ddfa80e197 100644 --- a/src/core/SkXfermode.cpp +++ b/src/core/SkXfermode.cpp @@ -656,7 +656,7 @@ bool SkXfermode::asFragmentProcessor(const GrFragmentProcessor**, return false; } -bool SkXfermode::asXPFactory(GrXPFactory**) const { +bool SkXfermode::asXPFactory(const GrXPFactory**) const { return false; } @@ -664,7 +664,7 @@ bool SkXfermode::asXPFactory(GrXPFactory**) const { #if SK_SUPPORT_GPU #include "effects/GrPorterDuffXferProcessor.h" -bool SkXfermode::AsXPFactory(SkXfermode* xfermode, GrXPFactory** xpf) { +bool SkXfermode::AsXPFactory(SkXfermode* xfermode, const GrXPFactory** xpf) { if (nullptr == xfermode) { if (xpf) { *xpf = GrPorterDuffXPFactory::Create(kSrcOver_Mode); @@ -675,7 +675,7 @@ bool SkXfermode::AsXPFactory(SkXfermode* xfermode, GrXPFactory** xpf) { } } #else -bool SkXfermode::AsXPFactory(SkXfermode* xfermode, GrXPFactory** xpf) { +bool SkXfermode::AsXPFactory(SkXfermode* xfermode, const GrXPFactory** xpf) { return false; } #endif @@ -932,7 +932,7 @@ bool SkProcCoeffXfermode::asFragmentProcessor(const GrFragmentProcessor** fp, return true; } -bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const { +bool SkProcCoeffXfermode::asXPFactory(const GrXPFactory** xp) const { if (CANNOT_USE_COEFF != fSrcCoeff) { if (xp) { *xp = GrPorterDuffXPFactory::Create(fMode); diff --git a/src/core/SkXfermode_proccoeff.h b/src/core/SkXfermode_proccoeff.h index f86af2df01..e0d2743ac9 100644 --- a/src/core/SkXfermode_proccoeff.h +++ b/src/core/SkXfermode_proccoeff.h @@ -47,7 +47,7 @@ public: bool asFragmentProcessor(const GrFragmentProcessor**, const GrFragmentProcessor*) const override; - bool asXPFactory(GrXPFactory**) const override; + bool asXPFactory(const GrXPFactory**) const override; #endif SK_TO_STRING_OVERRIDE() |