Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: src/core/SkXfermode.cpp

Issue 852203003: Add Xfer Processor for GrCustomXfermodes (Closed) Base URL: https://skia.googlesource.com/skia.git@xferMover
Patch Set: Fix build Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/effects/GrCustomXfermode.h ('k') | src/core/SkXfermode_proccoeff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkXfermode.cpp
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp
index 9d727f07f14ab40a110815fb64c101f0e795144e..37dbd0d1e24a264864873e2315b9e3e6b69dc19a 100644
--- a/src/core/SkXfermode.cpp
+++ b/src/core/SkXfermode.cpp
@@ -932,6 +932,17 @@ bool SkProcCoeffXfermode::asFragmentProcessor(GrFragmentProcessor** fp,
}
return false;
}
+
+bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const {
+ if (GrCustomXfermode::IsSupportedMode(fMode)) {
+ if (xp) {
+ *xp = GrCustomXfermode::CreateXPFactory(fMode);
+ SkASSERT(*xp);
+ }
+ return true;
+ }
+ return false;
+}
#endif
const char* SkXfermode::ModeName(Mode mode) {
« no previous file with comments | « include/gpu/effects/GrCustomXfermode.h ('k') | src/core/SkXfermode_proccoeff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698