Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: Source/core/platform/graphics/filters/FETurbulence.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/FETurbulence.h ('k') | Source/core/platform/graphics/filters/Filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698