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

Issue 6713051: Make table color filter use asNewCustomStage. (Closed)

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

Description

Make table color filter use asNewCustomStage. R=robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=5976

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -184 lines) Patch
M gyp/gpu.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M include/core/SkColorFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkColorFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkTableColorFilter.cpp View 4 chunks +167 lines, -7 lines 3 comments Download
M src/gpu/SkGpuDevice.cpp View 2 chunks +1 line, -9 lines 2 comments Download
D src/gpu/effects/GrColorTableEffect.h View 1 chunk +0 lines, -42 lines 0 comments Download
D src/gpu/effects/GrColorTableEffect.cpp View 1 chunk +0 lines, -122 lines 0 comments Download

Messages

Total messages: 3
bsalomon
https://codereview.appspot.com/6713051/diff/1/src/effects/SkTableColorFilter.cpp File src/effects/SkTableColorFilter.cpp (right): https://codereview.appspot.com/6713051/diff/1/src/effects/SkTableColorFilter.cpp#newcode219 src/effects/SkTableColorFilter.cpp:219: #include "GrCustomStage.h" Everything here up to GrCustomStage* SkTable_ColorFilter::asNewCustomStage() is ...
11 years, 10 months ago (2012-10-17 14:30:01 UTC) #1
robertphillips
LGTM + 2 questions. Do we already have a GM for this? https://codereview.appspot.com/6713051/diff/1/src/effects/SkTableColorFilter.cpp File src/effects/SkTableColorFilter.cpp ...
11 years, 10 months ago (2012-10-17 14:40:02 UTC) #2
bsalomon
11 years, 10 months ago (2012-10-17 14:54:37 UTC) #3
Yes, there is a tablecolorfilter.cpp.

https://codereview.appspot.com/6713051/diff/1/src/effects/SkTableColorFilter.cpp
File src/effects/SkTableColorFilter.cpp (right):

https://codereview.appspot.com/6713051/diff/1/src/effects/SkTableColorFilter....
src/effects/SkTableColorFilter.cpp:290: } else {
On 2012/10/17 14:40:02, robertphillips wrote:
> /0 issue here too?

Yup, I added the same trick (max with small value). Maybe this should be
captured somewhere in an unpremul function.

https://codereview.appspot.com/6713051/diff/1/src/gpu/SkGpuDevice.cpp
File src/gpu/SkGpuDevice.cpp (right):

https://codereview.appspot.com/6713051/diff/1/src/gpu/SkGpuDevice.cpp#newcode517
src/gpu/SkGpuDevice.cpp:517: SkXfermode::Mode filterMode;
On 2012/10/17 14:40:02, robertphillips wrote:
> rm colorTransformTable too?

Done.
Sign in to reply to this message.

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