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

Unified Diff: src/effects/SkLightingImageFilter.cpp

Issue 1885863004: Refactor how we store and use samplers in Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/effects/SkLightingImageFilter.cpp
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
index e60e7ed370b4c4c4c009eb7f1c412e2a0187104a..7adcd24b5aec4b1a68b088cc3f272f886557e6c3 100644
--- a/src/effects/SkLightingImageFilter.cpp
+++ b/src/effects/SkLightingImageFilter.cpp
@@ -1824,7 +1824,7 @@ void GrGLLightingEffect::emitCode(EmitArgs& args) {
le.domain(),
temp.c_str(),
texCoords,
- args.fTexSamplers[0]);
+ uniformHandler->getSampler(args.fTexSamplers[0]));
fragBuilder->codeAppendf("m[%d] = %s.a;", index, temp.c_str());
index++;
}

Powered by Google App Engine
This is Rietveld 408576698