OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) 2010 Renata Hodovan <reni@inf.u-szeged.hu> | 6 * Copyright (C) 2010 Renata Hodovan <reni@inf.u-szeged.hu> |
7 * Copyright (C) 2011 Gabor Loki <loki@webkit.org> | 7 * Copyright (C) 2011 Gabor Loki <loki@webkit.org> |
8 * Copyright (C) 2013 Google Inc. All rights reserved. | 8 * Copyright (C) 2013 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 10 matching lines...) Expand all Loading... |
21 * along with this library; see the file COPYING.LIB. If not, write to | 21 * along with this library; see the file COPYING.LIB. If not, write to |
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/platform/graphics/filters/FETurbulence.h" | 28 #include "core/platform/graphics/filters/FETurbulence.h" |
29 #include "SkPerlinNoiseShader.h" | 29 #include "SkPerlinNoiseShader.h" |
30 #include "SkRectShaderImageFilter.h" | 30 #include "SkRectShaderImageFilter.h" |
31 #include "core/platform/graphics/filters/ParallelJobs.h" | 31 #include "platform/graphics/filters/ParallelJobs.h" |
32 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" | 32 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
33 #include "platform/text/TextStream.h" | 33 #include "platform/text/TextStream.h" |
34 #include "wtf/MathExtras.h" | 34 #include "wtf/MathExtras.h" |
35 #include "wtf/Uint8ClampedArray.h" | 35 #include "wtf/Uint8ClampedArray.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 /* | 39 /* |
40 Produces results in the range [1, 2**31 - 2]. Algorithm is: | 40 Produces results in the range [1, 2**31 - 2]. Algorithm is: |
41 r = (a * r) mod m where a = randAmplitude = 16807 and | 41 r = (a * r) mod m where a = randAmplitude = 16807 and |
42 m = randMaximum = 2**31 - 1 = 2147483647, r = seed. | 42 m = randMaximum = 2**31 - 1 = 2147483647, r = seed. |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 FilterEffect::externalRepresentation(ts); | 465 FilterEffect::externalRepresentation(ts); |
466 ts << " type=\"" << type() << "\" " | 466 ts << " type=\"" << type() << "\" " |
467 << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() <<
"\" " | 467 << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() <<
"\" " |
468 << "seed=\"" << seed() << "\" " | 468 << "seed=\"" << seed() << "\" " |
469 << "numOctaves=\"" << numOctaves() << "\" " | 469 << "numOctaves=\"" << numOctaves() << "\" " |
470 << "stitchTiles=\"" << stitchTiles() << "\"]\n"; | 470 << "stitchTiles=\"" << stitchTiles() << "\"]\n"; |
471 return ts; | 471 return ts; |
472 } | 472 } |
473 | 473 |
474 } // namespace WebCore | 474 } // namespace WebCore |
OLD | NEW |