diff options
author | 2013-05-22 14:34:04 +0000 | |
---|---|---|
committer | 2013-05-22 14:34:04 +0000 | |
commit | 2db3ded335fdb6697623bece61cabc307a414770 (patch) | |
tree | 577a6e3f4b446ef6898cc96b784efc40f3e8e3cf /src/gpu/gl/GrGLProgram.h | |
parent | 881b10b023bcba3c81f1d9e98e62b7b6855b0f11 (diff) |
Make GrGLProgramDesc's key variable length by compacting the effect key array
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/15252004
git-svn-id: http://skia.googlecode.com/svn/trunk@9239 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLProgram.h')
-rw-r--r-- | src/gpu/gl/GrGLProgram.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h index 578b4a99cf..be6e6878df 100644 --- a/src/gpu/gl/GrGLProgram.h +++ b/src/gpu/gl/GrGLProgram.h @@ -48,7 +48,7 @@ public: void abandon(); /** - * The shader may modify the blend coefficients. Params are in/out + * The shader may modify the blend coefficients. Params are in/out. */ void overrideBlend(GrBlendCoeff* srcCoeff, GrBlendCoeff* dstCoeff) const; @@ -104,12 +104,10 @@ public: * This function uploads uniforms and calls each GrGLEffect's setData. It is called before a * draw occurs using the program after the program has already been bound. It also uses the * GrGpuGL object to bind the textures required by the GrGLEffects. - * - * The color and coverage params override the GrDrawState's getColor() and getCoverage() values. */ void setData(GrGpuGL*, - GrColor color, - GrColor coverage, + GrDrawState::BlendOptFlags, + const GrEffectStage* stages[], // output of GrGLProgramDesc:Build() const GrDeviceCoordTexture* dstCopy, // can be NULL SharedGLState*); @@ -121,7 +119,9 @@ private: bool succeeded() const { return 0 != fProgramID; } /** - * This is the heavy initialization routine for building a GLProgram. + * This is the heavy initialization routine for building a GLProgram. stages is all the enabled + * color stages followed by all the enabled coverage stages as output by + * GrGLProgramDesc::Build() */ bool genProgram(const GrEffectStage* stages[]); |