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

Unified Diff: src/effects/SkPixelXorXfermode.cpp

Issue 1684063006: Add GrShaderFlags enum (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Bit->Flag Created 4 years, 10 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 | « src/effects/SkPerlinNoiseShader.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkPixelXorXfermode.cpp
diff --git a/src/effects/SkPixelXorXfermode.cpp b/src/effects/SkPixelXorXfermode.cpp
index 7432ef132b066ca022681b8c1907a5c68e51d9f5..951ef57bbcb02a59292df2856bb427144e2a024a 100644
--- a/src/effects/SkPixelXorXfermode.cpp
+++ b/src/effects/SkPixelXorXfermode.cpp
@@ -176,7 +176,7 @@ public:
SkString dstColor("dstColor");
this->emitChild(0, nullptr, &dstColor, args);
- fOpColorUni = args.fUniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility,
+ fOpColorUni = args.fUniformHandler->addUniform(kFragment_GrShaderFlag,
kVec3f_GrSLType, kHigh_GrSLPrecision,
"opColor");
const char* kOpColorUni = args.fUniformHandler->getUniformCStr(fOpColorUni);
@@ -279,7 +279,7 @@ private:
const char* outColor,
const char* outColorSecondary,
const GrXferProcessor& proc) override {
- fOpColorUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility,
+ fOpColorUni = uniformHandler->addUniform(kFragment_GrShaderFlag,
kVec3f_GrSLType, kHigh_GrSLPrecision,
"opColor");
const char* kOpColorUni = uniformHandler->getUniformCStr(fOpColorUni);
« no previous file with comments | « src/effects/SkPerlinNoiseShader.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698