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

Unified Diff: src/effects/gradients/SkGradientShaderPriv.h

Issue 2221133002: Refactor various gradient effect classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Brian's suggestions Created 4 years, 4 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/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkLinearGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkGradientShaderPriv.h
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h
index 16c6475e339e0d94a6bd07b17f70b76a827a2135..50ad427e4ae1d5f3aa03f37b79e496d930be5b52 100644
--- a/src/effects/gradients/SkGradientShaderPriv.h
+++ b/src/effects/gradients/SkGradientShaderPriv.h
@@ -326,6 +326,7 @@ class GrInvariantOutput;
// Base class for Gr gradient effects
class GrGradientEffect : public GrFragmentProcessor {
public:
+ class GLSLProcessor;
GrGradientEffect(GrContext* ctx,
const SkGradientShaderBase& shader,
@@ -353,7 +354,6 @@ public:
}
protected:
-
/** Populates a pair of arrays with colors and stop info to construct a random gradient.
The function decides whether stop values should be used or not. The return value indicates
the number of colors, which will be capped by kMaxRandomGradientColors. colors should be
@@ -392,10 +392,10 @@ private:
///////////////////////////////////////////////////////////////////////////////
-// Base class for GL gradient effects
-class GrGLGradientEffect : public GrGLSLFragmentProcessor {
+// Base class for GLSL gradient effects
+class GrGradientEffect::GLSLProcessor : public GrGLSLFragmentProcessor {
public:
- GrGLGradientEffect();
+ GLSLProcessor();
protected:
void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkLinearGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698