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

Unified Diff: src/gpu/gl/GrGLProgramEffects.cpp

Issue 26190003: Potentially optimize some GrGLEffects for known input color values (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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/gpu/gl/GrGLProgramEffects.h ('k') | src/gpu/gl/GrGLSL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLProgramEffects.cpp
diff --git a/src/gpu/gl/GrGLProgramEffects.cpp b/src/gpu/gl/GrGLProgramEffects.cpp
index 17c666a015b87369c631ec65f027dcc33b66baa0..9ab55c3f4e170adf4a7f7545ba8035608c5afcc1 100644
--- a/src/gpu/gl/GrGLProgramEffects.cpp
+++ b/src/gpu/gl/GrGLProgramEffects.cpp
@@ -263,7 +263,7 @@ void GrGLVertexProgramEffects::emitEffect(GrGLFullShaderBuilder* builder,
const GrEffectStage& stage,
EffectKey key,
const char* outColor,
- const char* inColor,
+ const GrGLSLExpr4& inColor,
int stageIndex) {
GrDrawEffect drawEffect(stage, fHasExplicitLocalCoords);
const GrEffectRef& effect = *stage.getEffect();
@@ -461,7 +461,7 @@ GrGLVertexProgramEffectsBuilder::GrGLVertexProgramEffectsBuilder(GrGLFullShaderB
void GrGLVertexProgramEffectsBuilder::emitEffect(const GrEffectStage& stage,
GrGLProgramEffects::EffectKey key,
const char* outColor,
- const char* inColor,
+ const GrGLSLExpr4& inColor,
int stageIndex) {
SkASSERT(NULL != fProgramEffects.get());
fProgramEffects->emitEffect(fBuilder, stage, key, outColor, inColor, stageIndex);
@@ -473,7 +473,7 @@ void GrGLTexGenProgramEffects::emitEffect(GrGLFragmentOnlyShaderBuilder* builder
const GrEffectStage& stage,
EffectKey key,
const char* outColor,
- const char* inColor,
+ const GrGLSLExpr4& inColor,
int stageIndex) {
GrDrawEffect drawEffect(stage, false);
const GrEffectRef& effect = *stage.getEffect();
@@ -579,7 +579,7 @@ GrGLTexGenProgramEffectsBuilder::GrGLTexGenProgramEffectsBuilder(
void GrGLTexGenProgramEffectsBuilder::emitEffect(const GrEffectStage& stage,
GrGLProgramEffects::EffectKey key,
const char* outColor,
- const char* inColor,
+ const GrGLSLExpr4& inColor,
int stageIndex) {
SkASSERT(NULL != fProgramEffects.get());
fProgramEffects->emitEffect(fBuilder, stage, key, outColor, inColor, stageIndex);
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.h ('k') | src/gpu/gl/GrGLSL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698