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

Issue 7322060: New SVG turbulence in Skia (Closed)

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

Description

New SVG turbulence in Skia This cl contains the code for both CPU and GPU generation of noise. Both codepaths yield equivalent results. TEST:Added 'perlinnoise' gm Committed: https://code.google.com/p/skia/source/detail?r=8313

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 35

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 15

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 1

Patch Set 11 : #

Total comments: 1

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Total comments: 2

Patch Set 17 : #

Total comments: 2

Patch Set 18 : #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1227 lines, -0 lines) Patch
A gm/perlinnoise.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +115 lines, -0 lines 0 comments Download
M gyp/effects.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
A include/effects/SkPerlinNoiseShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +111 lines, -0 lines 0 comments Download
A src/effects/SkPerlinNoiseShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +998 lines, -0 lines 0 comments Download

Messages

Total messages: 63
sugoi
11 years, 10 months ago (2013-02-12 19:15:33 UTC) #1
bsalomon
Do we see the same seed value repeatedly? If so I really think we will ...
11 years, 9 months ago (2013-02-19 19:30:12 UTC) #2
sugoi
New version with Brian's comments fixed.
11 years, 9 months ago (2013-02-21 14:55:47 UTC) #3
reed1
note -- moving to a factory might eliminate the need for the enum altogether. https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h ...
11 years, 9 months ago (2013-02-21 15:20:55 UTC) #4
reed1
also, .h and .cpp should be move out of core and into effects
11 years, 9 months ago (2013-02-21 15:21:12 UTC) #5
reed1
On 2013/02/21 15:21:12, reed1 wrote: > also, .h and .cpp should be move out of ...
11 years, 9 months ago (2013-02-21 15:23:31 UTC) #6
reed1
Perhaps we can separate out the revisions to rectshaderimagefilter and the new CL for turbulence?
11 years, 9 months ago (2013-02-21 15:24:34 UTC) #7
bsalomon
https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h File include/core/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h#newcode26 include/core/SkTurbulenceShader.h:26: kFractalnoise_TurbulenceType, Fractalnoise -> FractalNoise ? https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h#newcode32 include/core/SkTurbulenceShader.h:32: * Note ...
11 years, 9 months ago (2013-02-21 15:31:32 UTC) #8
sugoi
Ok, I addressed most comments, but I didn't change SkRect to SKISize in SkRectShaderImageFilter. I ...
11 years, 9 months ago (2013-02-21 19:02:24 UTC) #9
reed1
:( can we please separate out a CL that handles the changes to rectshader?
11 years, 9 months ago (2013-02-21 19:39:47 UTC) #10
sugoi
On 2013/02/21 19:39:47, reed1 wrote: > :( can we please separate out a CL that ...
11 years, 9 months ago (2013-02-21 19:41:00 UTC) #11
reed1
I think "turbulence" is a rare enough topic that we will require a real live ...
11 years, 9 months ago (2013-02-21 19:45:38 UTC) #12
sugoi
Done
11 years, 9 months ago (2013-02-21 19:47:01 UTC) #13
sugoi
On 2013/02/21 19:47:01, sugoi wrote: > Done (This refers to splitting the cl into 2 ...
11 years, 9 months ago (2013-02-21 19:49:29 UTC) #14
reed1
https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h File include/core/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h#newcode12 include/core/SkTurbulenceShader.h:12: On 2013/02/21 19:02:24, sugoi wrote: > They can't be ...
11 years, 9 months ago (2013-02-21 19:51:32 UTC) #15
bsalomon
https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h File include/core/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h#newcode32 include/core/SkTurbulenceShader.h:32: * Note that, if stitchTiles is true, the size ...
11 years, 9 months ago (2013-02-21 19:52:06 UTC) #16
sugoi
1 ) The shader produces tiles of the provided size. The tiles can be repeatable ...
11 years, 9 months ago (2013-02-21 20:06:24 UTC) #17
Stephen White
https://codereview.appspot.com/7322060/diff/21001/include/effects/SkTurbulenceShader.h File include/effects/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/21001/include/effects/SkTurbulenceShader.h#newcode39 include/effects/SkTurbulenceShader.h:39: const SkISize& size); As discussed, let's rename size -> ...
11 years, 9 months ago (2013-02-21 20:31:29 UTC) #18
sugoi
https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h File include/core/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/6001/include/core/SkTurbulenceShader.h#newcode12 include/core/SkTurbulenceShader.h:12: I can put PaintingData private, but StitchData is used ...
11 years, 9 months ago (2013-02-21 21:11:46 UTC) #19
bsalomon
On 2013/02/21 20:06:24, sugoi wrote: > 1 ) The shader produces tiles of the provided ...
11 years, 9 months ago (2013-02-21 21:14:13 UTC) #20
sugoi
On 2013/02/21 21:14:13, bsalomon wrote: > Can you add a comment about the tiled nature ...
11 years, 9 months ago (2013-02-21 21:24:40 UTC) #21
Stephen White
https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h File include/effects/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h#newcode17 include/effects/SkTurbulenceShader.h:17: It can produce tilable noise if asked to stitch ...
11 years, 9 months ago (2013-02-21 21:47:05 UTC) #22
sugoi
https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h File include/effects/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h#newcode34 include/effects/SkTurbulenceShader.h:34: * kUnknown_Type is invalid, but will behave like kTurbulence_Type ...
11 years, 9 months ago (2013-02-21 21:55:39 UTC) #23
bsalomon
https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h File include/effects/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/34001/include/effects/SkTurbulenceShader.h#newcode22 include/effects/SkTurbulenceShader.h:22: tiles within the result will be tilable, but the ...
11 years, 9 months ago (2013-02-21 22:12:46 UTC) #24
reed1
I need to install this locally and play around. At the moment I still don't ...
11 years, 9 months ago (2013-02-22 14:12:07 UTC) #25
reed1
Is PerlinShader a better name? class SkPerlinShader ... { public: // no need for an ...
11 years, 9 months ago (2013-02-22 14:13:49 UTC) #26
reed1
https://codereview.appspot.com/7322060/diff/36001/include/effects/SkTurbulenceShader.h File include/effects/SkTurbulenceShader.h (right): https://codereview.appspot.com/7322060/diff/36001/include/effects/SkTurbulenceShader.h#newcode39 include/effects/SkTurbulenceShader.h:39: * Both base frequencies (X and Y) have a ...
11 years, 9 months ago (2013-02-22 14:15:22 UTC) #27
sugoi
On 2013/02/22 14:13:49, reed1 wrote: > Is PerlinShader a better name? > > class SkPerlinShader ...
11 years, 9 months ago (2013-02-22 14:39:27 UTC) #28
reed1
I suggested Perlin mostly by just looking at your header: - you mention Perlin noise ...
11 years, 9 months ago (2013-02-22 14:48:35 UTC) #29
Stephen White
On 2013/02/22 14:48:35, reed1 wrote: > I suggested Perlin mostly by just looking at your ...
11 years, 9 months ago (2013-02-22 14:55:27 UTC) #30
sugoi
Just a precision about the noise types : the difference between the 2 is just ...
11 years, 9 months ago (2013-02-22 15:02:16 UTC) #31
reed1
On 2013/02/22 15:02:16, sugoi wrote: > Just a precision about the noise types : the ...
11 years, 9 months ago (2013-02-22 15:40:53 UTC) #32
sugoi
I did the Factory related changes. I haven't renamed it to SkPerlinNoiseShader yet to make ...
11 years, 9 months ago (2013-02-22 16:24:38 UTC) #33
sugoi
This new change only contains the name change from Turbulence to PerlinNoise
11 years, 9 months ago (2013-02-22 18:37:31 UTC) #34
reed1
Thanks for the additional documentation and factories for creating these. I have run the patch ...
11 years, 9 months ago (2013-02-22 19:01:46 UTC) #35
sugoi
On 2013/02/22 19:01:46, reed1 wrote: > I have run the patch locally, and you have ...
11 years, 9 months ago (2013-02-22 19:23:21 UTC) #36
reed1
The matrix and paint is provided in setContext(), which you need to override. See any ...
11 years, 9 months ago (2013-02-22 19:43:43 UTC) #37
sugoi
On 2013/02/22 19:43:43, reed1 wrote: > Regarding opaqueness, I see that you do affect the ...
11 years, 9 months ago (2013-02-22 19:53:00 UTC) #38
sugoi
Added support for paint alpha and local matrix transformation.
11 years, 9 months ago (2013-02-22 22:12:44 UTC) #39
sugoi
Just a ping to remind you that I'd like this cl to be reviewed. Thanks.
11 years, 9 months ago (2013-02-27 18:28:26 UTC) #40
reed1
I apologize. I have not yet installed the patch to see how it behaves with ...
11 years, 9 months ago (2013-02-27 18:53:39 UTC) #41
sugoi
Sure, no problem, as long as you don't simply forget about it, I'm fine with ...
11 years, 9 months ago (2013-02-27 18:57:52 UTC) #42
sugoi
I had to update the code because of the changes to GrGLShaderBuilder.
11 years, 9 months ago (2013-03-08 15:29:09 UTC) #43
reed1
This shader does not respect the CTM, which means when I zoom (or any other ...
11 years, 9 months ago (2013-03-08 16:06:22 UTC) #44
sugoi
On 2013/03/08 16:06:22, reed1 wrote: > This shader does not respect the CTM, which means ...
11 years, 9 months ago (2013-03-08 16:24:36 UTC) #45
reed1
For local testing, just hit up-arrow (or down-arrow) to scale the canvas in SampleApp. For ...
11 years, 9 months ago (2013-03-08 16:35:50 UTC) #46
reed1
another local test is to just click-draw in SampleApp. This translate the canvas, and you'll ...
11 years, 9 months ago (2013-03-08 16:36:38 UTC) #47
sugoi
All right, I'm not absolutely certain that this is the proper way to do this, ...
11 years, 9 months ago (2013-03-08 20:08:51 UTC) #48
reed1
Your shader (noise) will want to override setContext(). That call gives you the current paint ...
11 years, 9 months ago (2013-03-08 20:26:53 UTC) #49
sugoi
On 2013/03/08 20:26:53, reed1 wrote: > Your shader (noise) will want to override setContext(). That ...
11 years, 9 months ago (2013-03-08 20:32:02 UTC) #50
reed1
On 2013/03/08 20:32:02, sugoi wrote: > On 2013/03/08 20:26:53, reed1 wrote: > > Your shader ...
11 years, 9 months ago (2013-03-08 20:35:05 UTC) #51
reed1
Brian or Jim can comment on getting CTM info for your gpu-shader
11 years, 9 months ago (2013-03-08 20:36:26 UTC) #52
bsalomon
On 2013/03/08 20:36:26, reed1 wrote: > Brian or Jim can comment on getting CTM info ...
11 years, 9 months ago (2013-03-08 20:44:20 UTC) #53
bsalomon
On 2013/03/08 20:44:20, bsalomon wrote: > On 2013/03/08 20:36:26, reed1 wrote: > > Brian or ...
11 years, 9 months ago (2013-03-08 20:48:17 UTC) #54
sugoi
I adapted the code to support the ctm matrix and I changed the gm to ...
11 years, 9 months ago (2013-03-13 18:11:34 UTC) #55
reed1
Thanks. I will install and test in the morning.
11 years, 9 months ago (2013-03-13 21:44:07 UTC) #56
bsalomon
Does the CTM work in the GPU backend, too? https://codereview.appspot.com/7322060/diff/62001/src/effects/SkPerlinNoiseShader.cpp File src/effects/SkPerlinNoiseShader.cpp (right): https://codereview.appspot.com/7322060/diff/62001/src/effects/SkPerlinNoiseShader.cpp#newcode940 src/effects/SkPerlinNoiseShader.cpp:940: ...
11 years, 9 months ago (2013-03-15 15:43:18 UTC) #57
sugoi
On 2013/03/15 15:43:18, bsalomon wrote: > Does the CTM work in the GPU backend, too? ...
11 years, 9 months ago (2013-03-15 16:43:39 UTC) #58
sugoi
Updated the cl for the recent GrDrawEffect related changes. https://codereview.appspot.com/7322060/diff/62001/src/effects/SkPerlinNoiseShader.cpp File src/effects/SkPerlinNoiseShader.cpp (right): https://codereview.appspot.com/7322060/diff/62001/src/effects/SkPerlinNoiseShader.cpp#newcode940 src/effects/SkPerlinNoiseShader.cpp:940: ...
11 years, 8 months ago (2013-03-21 14:46:44 UTC) #59
bsalomon
On 2013/03/21 14:46:44, sugoi wrote: > Updated the cl for the recent GrDrawEffect related changes. ...
11 years, 8 months ago (2013-03-21 17:47:27 UTC) #60
sugoi
Hope this fixes the mac warnings...
11 years, 8 months ago (2013-03-21 19:55:14 UTC) #61
reed1
lgtm
11 years, 8 months ago (2013-03-21 20:26:42 UTC) #62
sugoi
11 years, 8 months ago (2013-03-21 21:01:14 UTC) #63
Message was sent while issue was closed.
Committed patchset #19 manually as r8313 (presubmit successful).
Sign in to reply to this message.

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