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

Unified Diff: src/core/SkBitmapProcShader.cpp

Issue 1348583002: Make skpaint->grpaint flow work for composing draws (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused inheriteds to satisfy clang 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
« no previous file with comments | « include/gpu/effects/GrXfermodeFragmentProcessor.h ('k') | src/core/SkDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcShader.cpp
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 8a5e03cfc315848738387edf2646548aa0f42616..602e4e3e831adef4d6642b831d71e2c213f39b93 100644
--- a/src/core/SkBitmapProcShader.cpp
+++ b/src/core/SkBitmapProcShader.cpp
@@ -408,9 +408,9 @@ const GrFragmentProcessor* SkBitmapProcShader::asFragmentProcessor(GrContext* co
}
if (kAlpha_8_SkColorType == fRawBitmap.colorType()) {
- return SkRef(inner.get());
+ return GrFragmentProcessor::MulOutputByInputUnpremulColor(inner);
}
- return GrFragmentProcessor::MulOuputByInputAlpha(inner);
+ return GrFragmentProcessor::MulOutputByInputAlpha(inner);
}
#endif
« no previous file with comments | « include/gpu/effects/GrXfermodeFragmentProcessor.h ('k') | src/core/SkDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698