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

Issue 6696044: Require matrix for custom stage to be set when custom stage is installed. (Closed)

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

Description

Require matrix for custom stage to be set when custom stage is installed. Committed: https://code.google.com/p/skia/source/detail?r=5962

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -175 lines) Patch
M gm/texdata.cpp View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M include/core/SkShader.h View 1 chunk +6 lines, -7 lines 0 comments Download
M include/gpu/GrSamplerState.h View 4 chunks +12 lines, -17 lines 0 comments Download
M src/core/SkShader.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M src/effects/SkBlendImageFilter.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 chunks +23 lines, -10 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 2 chunks +22 lines, -10 lines 2 comments Download
M src/effects/gradients/SkSweepGradient.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 chunks +22 lines, -10 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 chunks +27 lines, -13 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 chunks +26 lines, -13 lines 2 comments Download
M src/gpu/GrClipMaskManager.cpp View 2 chunks +2 lines, -5 lines 0 comments Download
M src/gpu/GrContext.cpp View 7 chunks +14 lines, -17 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 chunk +10 lines, -3 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 3 chunks +3 lines, -2 lines 1 comment Download
M src/gpu/GrTextContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 7 chunks +23 lines, -42 lines 0 comments Download

Messages

Total messages: 3
bsalomon
In the near future GrCustomStages manage their own texture matrix. This means the matrix needs ...
11 years, 8 months ago (2012-10-15 19:18:04 UTC) #1
robertphillips
LGTM + 2 potential refactorings https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkRadialGradient.cpp File src/effects/gradients/SkRadialGradient.cpp (right): https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkRadialGradient.cpp#newcode564 src/effects/gradients/SkRadialGradient.cpp:564: Could this following block ...
11 years, 8 months ago (2012-10-15 19:40:32 UTC) #2
bsalomon
11 years, 8 months ago (2012-10-16 14:15:50 UTC) #3
https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkRadi...
File src/effects/gradients/SkRadialGradient.cpp (right):

https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkRadi...
src/effects/gradients/SkRadialGradient.cpp:564: 
On 2012/10/15 19:40:32, robertphillips wrote:
> Could this following block be method? It seems like it also appears in
> SkLinearGradient and SkSweepGradient.

I thought about doing that but I also want to refactor how SkShader manage's its
local matrix anyway. So I think I'll hold off on it.

https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkTwoP...
File src/effects/gradients/SkTwoPointRadialGradient.cpp (right):

https://codereview.appspot.com/6696044/diff/3001/src/effects/gradients/SkTwoP...
src/effects/gradients/SkTwoPointRadialGradient.cpp:655: SkScalar diffLen =
fDiff.length();
On 2012/10/15 19:40:32, robertphillips wrote:
> Is there anything to share here with SkTwoPointConicalGradient?

It's slightly different... and SkTwoPointRadialGradient is on its way out now
that WK is using the conical version.
Sign in to reply to this message.

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