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

Unified Diff: src/core/SkShader.cpp

Issue 1347943003: Replace GrExtractAlphaFragmentProcessor with DstIn compose processor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
Index: src/core/SkShader.cpp
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index 2a1c28e0cf8684ebcc57035080f12b9f5f15eb67..0ff025c1a91fe05c0f2c81ba3f1c439cb773d3ca 100644
--- a/src/core/SkShader.cpp
+++ b/src/core/SkShader.cpp
@@ -216,6 +216,17 @@ const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat
return nullptr;
}
+#if SK_SUPPORT_GPU
+
+#include "effects/GrXfermodeFragmentProcessor.h"
+
+const GrFragmentProcessor* SkShader::MulFragmentProcesorOuputByInputAlpha(
+ const GrFragmentProcessor* fp) {
+ return GrXfermodeFragmentProcessor::CreateFromDstProcessor(fp, SkXfermode::kDstIn_Mode);
+}
+
+#endif
+
SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698