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

Issue 5489107: GPU implementation of color matrix filter (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by Stephen White
Modified:
12 years, 6 months ago
Reviewers:
bsalomon, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Implement the color matrix filter in Ganesh. Also, fix and enable the color matrix test slide. This was basically implemented in the same places where the blending-based color filter was being done. The shader simply does a mat4 matrix multiply and a vec4 add.

Patch Set 1 #

Patch Set 2 : Remove debugging output, fix and enable test #

Total comments: 3

Patch Set 3 : Fixes from review comments #

Total comments: 2

Patch Set 4 : fix for review comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -15 lines) Patch
M gm/colormatrix.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M include/gpu/GrPaint.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
M src/gpu/GrGLProgram.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/GrGLProgram.cpp View 1 2 3 5 chunks +35 lines, -2 lines 1 comment Download
M src/gpu/GrGLShaderVar.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrGpuGLShaders.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrGpuGLShaders.cpp View 1 2 3 4 chunks +27 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 1 chunk +11 lines, -4 lines 0 comments Download

Messages

Total messages: 13
Stephen White
12 years, 6 months ago (2011-12-22 16:14:33 UTC) #1
Stephen White
Remove debugging output, fix and enable test
12 years, 6 months ago (2012-01-03 14:53:26 UTC) #2
Stephen White
On 2012/01/03 14:53:26, Stephen White wrote: > Remove debugging output, fix and enable test OK, ...
12 years, 6 months ago (2012-01-03 15:03:42 UTC) #3
bsalomon
Overall LGTM. Can we do a bench run to see if adding fields is affecting ...
12 years, 6 months ago (2012-01-03 15:36:22 UTC) #4
Stephen White
On 2012/01/03 15:36:22, bsalomon wrote: > Overall LGTM. > > Can we do a bench ...
12 years, 6 months ago (2012-01-03 19:42:21 UTC) #5
Stephen White
Fixes from review comments
12 years, 6 months ago (2012-01-03 19:44:22 UTC) #6
reed1
Lets keep the conversion code (from funny fixed -> float) in for now, knowing that ...
12 years, 6 months ago (2012-01-03 19:56:09 UTC) #7
bsalomon
http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp File src/gpu/GrGLProgram.cpp (right): http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp#newcode812 src/gpu/GrGLProgram.cpp:812: if (SkXfermode::kZero_Coeff == uniformCoeff && I think there is ...
12 years, 6 months ago (2012-01-03 20:13:48 UTC) #8
Stephen White
http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp File src/gpu/GrGLProgram.cpp (right): http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp#newcode812 src/gpu/GrGLProgram.cpp:812: if (SkXfermode::kZero_Coeff == uniformCoeff && Ooooh, good catch! Thanks!
12 years, 6 months ago (2012-01-03 20:32:10 UTC) #9
bsalomon
On 2012/01/03 20:32:10, Stephen White wrote: > http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp > File src/gpu/GrGLProgram.cpp (right): > > http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp#newcode812 ...
12 years, 6 months ago (2012-01-03 20:50:24 UTC) #10
bsalomon
http://codereview.appspot.com/5489107/diff/1009/src/gpu/GrGLProgram.cpp File src/gpu/GrGLProgram.cpp (right): http://codereview.appspot.com/5489107/diff/1009/src/gpu/GrGLProgram.cpp#newcode376 src/gpu/GrGLProgram.cpp:376: fsCode->appendf("%s = %s * %s + %s;\n", outputVar, COL_MATRIX_UNI_NAME, ...
12 years, 6 months ago (2012-01-03 21:43:49 UTC) #11
Stephen White
On 2012/01/03 21:43:49, bsalomon wrote: > http://codereview.appspot.com/5489107/diff/1009/src/gpu/GrGLProgram.cpp > File src/gpu/GrGLProgram.cpp (right): > > http://codereview.appspot.com/5489107/diff/1009/src/gpu/GrGLProgram.cpp#newcode376 > ...
12 years, 6 months ago (2012-01-03 21:52:51 UTC) #12
Stephen White
12 years, 6 months ago (2012-01-03 22:51:45 UTC) #13
On 2012/01/03 20:50:24, bsalomon wrote:
> On 2012/01/03 20:32:10, Stephen White wrote:
> > http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp
> > File src/gpu/GrGLProgram.cpp (right):
> > 
> >
>
http://codereview.appspot.com/5489107/diff/9001/src/gpu/GrGLProgram.cpp#newco...
> > src/gpu/GrGLProgram.cpp:812: if (SkXfermode::kZero_Coeff == uniformCoeff &&
> > Ooooh, good catch!  Thanks!
> 
> LGTM

Landed as r2948.  Closing.
Sign in to reply to this message.

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