Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(864)

Issue 7040052: Allow GrEffects with multiple textures. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bsalomon
Modified:
11 years, 6 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Allow GrEffects with multiple textures. It will work as long as the total number of textures sis less than GrDrawState::kNumStages. That will be fixed in a follow up CL. Committed: https://code.google.com/p/skia/source/detail?r=7023

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -266 lines) Patch
M include/gpu/GrEffect.h View 2 chunks +10 lines, -1 line 0 comments Download
M src/effects/SkBlendImageFilter.cpp View 1 2 3 7 chunks +61 lines, -24 lines 2 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 2 chunks +1 line, -8 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 6 chunks +39 lines, -52 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 15 chunks +73 lines, -103 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 4 chunks +24 lines, -15 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 chunk +36 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 3 chunks +5 lines, -13 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 4 chunks +14 lines, -33 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 6 chunks +15 lines, -17 lines 0 comments Download

Messages

Total messages: 7
bsalomon
https://codereview.appspot.com/7040052/diff/4001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (left): https://codereview.appspot.com/7040052/diff/4001/src/gpu/gl/GrGLProgram.cpp#oldcode35 src/gpu/gl/GrGLProgram.cpp:35: inline const char* float_vector_type_str(int count) { These functions aren't ...
11 years, 6 months ago (2013-01-04 14:45:51 UTC) #1
robertphillips
LGTM + nits https://codereview.appspot.com/7040052/diff/4001/include/gpu/GrEffect.h File include/gpu/GrEffect.h (right): https://codereview.appspot.com/7040052/diff/4001/include/gpu/GrEffect.h#newcode90 include/gpu/GrEffect.h:90: dimensions */ GrTexture&? https://codereview.appspot.com/7040052/diff/4001/src/effects/SkBlendImageFilter.cpp File src/effects/SkBlendImageFilter.cpp ...
11 years, 6 months ago (2013-01-04 15:10:12 UTC) #2
bsalomon
https://codereview.appspot.com/7040052/diff/4001/include/gpu/GrEffect.h File include/gpu/GrEffect.h (right): https://codereview.appspot.com/7040052/diff/4001/include/gpu/GrEffect.h#newcode90 include/gpu/GrEffect.h:90: dimensions */ On 2013/01/04 15:10:13, robertphillips wrote: > GrTexture&? ...
11 years, 6 months ago (2013-01-04 15:31:17 UTC) #3
Stephen White
I'd like to take a look at this before it lands (will try to do ...
11 years, 6 months ago (2013-01-04 15:33:06 UTC) #4
bsalomon
On 2013/01/04 15:33:06, Stephen White wrote: > I'd like to take a look at this ...
11 years, 6 months ago (2013-01-04 15:33:37 UTC) #5
Stephen White
LGTM https://codereview.appspot.com/7040052/diff/5001/src/effects/SkBlendImageFilter.cpp File src/effects/SkBlendImageFilter.cpp (right): https://codereview.appspot.com/7040052/diff/5001/src/effects/SkBlendImageFilter.cpp#newcode312 src/effects/SkBlendImageFilter.cpp:312: GrEffect::MakeDivByTextureWHMatrix(fgTex), I wonder if we should have a ...
11 years, 6 months ago (2013-01-04 17:11:38 UTC) #6
bsalomon
11 years, 6 months ago (2013-01-04 18:14:53 UTC) #7
https://codereview.appspot.com/7040052/diff/5001/src/effects/SkBlendImageFilt...
File src/effects/SkBlendImageFilter.cpp (right):

https://codereview.appspot.com/7040052/diff/5001/src/effects/SkBlendImageFilt...
src/effects/SkBlendImageFilter.cpp:312:
GrEffect::MakeDivByTextureWHMatrix(fgTex),
On 2013/01/04 17:11:38, Stephen White wrote:
> I wonder if we should have a flavour of GrGLEffectMatrix::setData() that takes
> only the texture and stage, and does the MakeDivByTextureWHMatrix() and
> getCoordChangeMatrix() calls itself?  Just a thought.  Similarly for GenKey
> (below).

Not a bad idea... I'll consider doing it next time I mess with the code.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b