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

Issue 6351081: LUT-based color filtering prototype in Ganesh. (Closed)

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

Description

This CL implements the Ganesh path for the SkTable_ColorFilter color transformation. A new texture stage dedicated to color transforms has been added, along with the new custom stage implementing the LUT. Committed: https://code.google.com/p/skia/source/detail?r=4663

Patch Set 1 #

Patch Set 2 : First working prototype. LUT is applied, with some glitches. #

Total comments: 16

Patch Set 3 : Addressing review comments. #

Patch Set 4 : Intermediate patch, debugging glitch. #

Total comments: 2

Patch Set 5 : Debugging suspicious regression @ rev 4555. #

Patch Set 6 : Corrected memory corruption issue. #

Patch Set 7 : Remove dangling debugging code. #

Total comments: 1

Patch Set 8 : Rebaselined to 4608, and inheriting from GrSingleTextureEffect #

Patch Set 9 : Working version at TOT. #

Patch Set 10 : Remove commented out code. #

Total comments: 4

Patch Set 11 : Addressing review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -41 lines) Patch
M gyp/gpu.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrPaint.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -1 line 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -8 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 18 chunks +52 lines, -30 lines 0 comments Download
A src/gpu/effects/GrColorTableEffect.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A src/gpu/effects/GrColorTableEffect.cpp View 1 2 3 4 5 6 7 8 1 chunk +92 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL_unittest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20
twiz
Hi Guys, This patch (#2) is working, but there seem to be some texture management ...
12 years, 5 months ago (2012-07-11 19:49:49 UTC) #1
TomH
Unverified hunch - can't other things overwrite texture slot 1 (kColorFilterTextureIdx = 1)?
12 years, 5 months ago (2012-07-11 19:55:49 UTC) #2
TomH
https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp#newcode427 src/gpu/SkGpuDevice.cpp:427: // color once while converting to GrPaint and then ...
12 years, 5 months ago (2012-07-11 20:01:56 UTC) #3
bsalomon
https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp#newcode485 src/gpu/SkGpuDevice.cpp:485: colorSampler->setCustomStage(new GrColorTableEffect)->unref(); SkNEW() https://codereview.appspot.com/6351081/diff/2001/src/gpu/effects/GrColorTableEffect.cpp File src/gpu/effects/GrColorTableEffect.cpp (right): https://codereview.appspot.com/6351081/diff/2001/src/gpu/effects/GrColorTableEffect.cpp#newcode21 src/gpu/effects/GrColorTableEffect.cpp:21: ...
12 years, 5 months ago (2012-07-11 20:07:34 UTC) #4
bsalomon
https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6351081/diff/2001/src/gpu/SkGpuDevice.cpp#newcode428 src/gpu/SkGpuDevice.cpp:428: inline bool skPaint2GrPaintNoShader(SkGpuDevice* dev, On 2012/07/11 20:01:57, TomH wrote: ...
12 years, 5 months ago (2012-07-11 20:11:11 UTC) #5
bsalomon
On 2012/07/11 19:55:49, TomH wrote: > Unverified hunch - can't other things overwrite texture slot ...
12 years, 5 months ago (2012-07-11 20:14:12 UTC) #6
twiz
Thanks for your reviews, guys. I made the changes suggested. The glitches indicated still exist, ...
12 years, 5 months ago (2012-07-11 20:39:35 UTC) #7
twiz
Patch set #4 exhibits a glitch: No content is drawn for the tablecolorfilter gm slide. ...
12 years, 5 months ago (2012-07-13 19:56:21 UTC) #8
bsalomon
On 2012/07/13 19:56:21, twiz wrote: > Patch set #4 exhibits a glitch: No content is ...
12 years, 5 months ago (2012-07-13 19:58:03 UTC) #9
twiz
On 2012/07/13 19:56:21, twiz wrote: > Patch set #4 exhibits a glitch: No content is ...
12 years, 5 months ago (2012-07-16 17:25:17 UTC) #10
reed1
https://codereview.appspot.com/6351081/diff/6002/src/effects/SkTableColorFilter.cpp File src/effects/SkTableColorFilter.cpp (right): https://codereview.appspot.com/6351081/diff/6002/src/effects/SkTableColorFilter.cpp#newcode184 src/effects/SkTableColorFilter.cpp:184: This is writing into fStorage as if the ARGB ...
12 years, 5 months ago (2012-07-16 20:00:06 UTC) #11
twiz
Thanks for the review, Mike. I made the change you suggested, but it was not ...
12 years, 5 months ago (2012-07-17 15:33:33 UTC) #12
twiz
Corrected the regression. I still need to rebaseline to tip of tree, where I believe ...
12 years, 5 months ago (2012-07-17 22:09:55 UTC) #13
twiz
On 2012/07/17 22:09:55, twiz wrote: > Corrected the regression. > > I still need to ...
12 years, 5 months ago (2012-07-17 22:31:01 UTC) #14
twiz
On 2012/07/17 22:31:01, twiz wrote: > On 2012/07/17 22:09:55, twiz wrote: > > Corrected the ...
12 years, 5 months ago (2012-07-17 23:00:12 UTC) #15
twiz
One last time, I think this change is ready for prime time. As discussed earlier, ...
12 years, 5 months ago (2012-07-18 19:26:12 UTC) #16
bsalomon
Can you add your new custom stage to GrGLGpu_unittest.cpp? https://codereview.appspot.com/6351081/diff/31002/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.appspot.com/6351081/diff/31002/src/gpu/GrDrawState.h#newcode801 src/gpu/GrDrawState.h:801: ...
12 years, 5 months ago (2012-07-18 19:35:30 UTC) #17
twiz
Comments addressed, and unittest added. https://codereview.appspot.com/6351081/diff/31002/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.appspot.com/6351081/diff/31002/src/gpu/GrDrawState.h#newcode801 src/gpu/GrDrawState.h:801: if (enabled != s.isStageEnabled(i)) ...
12 years, 5 months ago (2012-07-18 20:59:10 UTC) #18
bsalomon
LGTM
12 years, 5 months ago (2012-07-18 21:08:43 UTC) #19
twiz
12 years, 5 months ago (2012-07-18 21:47:30 UTC) #20
On 2012/07/18 21:08:43, bsalomon wrote:
> LGTM

Committed:  r4663

Note that this change will require a Chromium skia.gyp change when the DEPS
rolls.
Sign in to reply to this message.

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