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

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

Issue 464273002: Cleanup namespace usage in platform/graphics/[filters/* to skia/*] and platform/graphics/[B-D]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months 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
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 pixelArray->zeroFill(); 361 pixelArray->zeroFill();
362 return; 362 return;
363 } 363 }
364 364
365 PaintingData paintingData(m_seed, roundedIntSize(filterPrimitiveSubregion(). size())); 365 PaintingData paintingData(m_seed, roundedIntSize(filterPrimitiveSubregion(). size()));
366 initPaint(paintingData); 366 initPaint(paintingData);
367 367
368 int optimalThreadNumber = (absolutePaintRect().width() * absolutePaintRect() .height()) / s_minimalRectDimension; 368 int optimalThreadNumber = (absolutePaintRect().width() * absolutePaintRect() .height()) / s_minimalRectDimension;
369 if (optimalThreadNumber > 1) { 369 if (optimalThreadNumber > 1) {
370 // Initialize parallel jobs 370 // Initialize parallel jobs
371 ParallelJobs<FillRegionParameters> parallelJobs(&blink::FETurbulence::fi llRegionWorker, optimalThreadNumber); 371 ParallelJobs<FillRegionParameters> parallelJobs(&FETurbulence::fillRegio nWorker, optimalThreadNumber);
372 372
373 // Fill the parameter array 373 // Fill the parameter array
374 int i = parallelJobs.numberOfJobs(); 374 int i = parallelJobs.numberOfJobs();
375 if (i > 1) { 375 if (i > 1) {
376 // Split the job into "stepY"-sized jobs but there a few jobs that n eed to be slightly larger since 376 // Split the job into "stepY"-sized jobs but there a few jobs that n eed to be slightly larger since
377 // stepY * jobs < total size. These extras are handled by the remain der "jobsWithExtra". 377 // stepY * jobs < total size. These extras are handled by the remain der "jobsWithExtra".
378 const int stepY = absolutePaintRect().height() / i; 378 const int stepY = absolutePaintRect().height() / i;
379 const int jobsWithExtra = absolutePaintRect().height() % i; 379 const int jobsWithExtra = absolutePaintRect().height() % i;
380 380
381 int startY = 0; 381 int startY = 0;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 FilterEffect::externalRepresentation(ts); 451 FilterEffect::externalRepresentation(ts);
452 ts << " type=\"" << type() << "\" " 452 ts << " type=\"" << type() << "\" "
453 << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() << "\" " 453 << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() << "\" "
454 << "seed=\"" << seed() << "\" " 454 << "seed=\"" << seed() << "\" "
455 << "numOctaves=\"" << numOctaves() << "\" " 455 << "numOctaves=\"" << numOctaves() << "\" "
456 << "stitchTiles=\"" << stitchTiles() << "\"]\n"; 456 << "stitchTiles=\"" << stitchTiles() << "\"]\n";
457 return ts; 457 return ts;
458 } 458 }
459 459
460 } // namespace blink 460 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEConvolveMatrix.cpp ('k') | Source/platform/graphics/filters/FilterOperationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698