diff options
Diffstat (limited to 'Source')
7 files changed, 23 insertions, 8 deletions
diff --git a/Source/ThirdParty/leveldb/util/arena.h b/Source/ThirdParty/leveldb/util/arena.h index 8f7dde226..73bbf1cb9 100644 --- a/Source/ThirdParty/leveldb/util/arena.h +++ b/Source/ThirdParty/leveldb/util/arena.h @@ -5,9 +5,9 @@ #ifndef STORAGE_LEVELDB_UTIL_ARENA_H_ #define STORAGE_LEVELDB_UTIL_ARENA_H_ -#include <cstddef> #include <vector> #include <assert.h> +#include <stddef.h> #include <stdint.h> namespace leveldb { diff --git a/Source/WTF/wtf/NullPtr.h b/Source/WTF/wtf/NullPtr.h index 98c05140d..050461243 100644 --- a/Source/WTF/wtf/NullPtr.h +++ b/Source/WTF/wtf/NullPtr.h @@ -34,8 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <ciso646> #if COMPILER_SUPPORTS(CXX_NULLPTR) || defined(_LIBCPP_VERSION) - -#include <cstddef> +#include <stddef.h> // libstdc++ supports nullptr_t starting with gcc 4.6. #if defined(__GLIBCXX__) && __GLIBCXX__ < 20110325 diff --git a/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h b/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h index 846e24497..9a287ccab 100644 --- a/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h +++ b/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h @@ -30,6 +30,10 @@ #include "Filter.h" #include <wtf/Vector.h> +namespace WTF { +template<typename Type> class ParallelJobs; +} + namespace WebCore { enum EdgeModeType { @@ -105,7 +109,7 @@ private: static const int s_minimalRectDimension = (100 * 100); // Empirical data limit for parallel jobs template<typename Type> - friend class ParallelJobs; + friend class WTF::ParallelJobs; struct InteriorPixelParameters { FEConvolveMatrix* filter; diff --git a/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h b/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h index f554ef841..105102fe0 100644 --- a/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h +++ b/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h @@ -26,6 +26,10 @@ #include "FilterEffect.h" #include "Filter.h" +namespace WTF { +template<typename Type> class ParallelJobs; +} + namespace WebCore { class FEGaussianBlur : public FilterEffect { @@ -53,7 +57,7 @@ private: static const int s_minimalRectDimension = 100 * 100; // Empirical data limit for parallel jobs template<typename Type> - friend class ParallelJobs; + friend class WTF::ParallelJobs; struct PlatformApplyParameters { FEGaussianBlur* filter; diff --git a/Source/WebCore/platform/graphics/filters/FELighting.h b/Source/WebCore/platform/graphics/filters/FELighting.h index b40bb1309..212d31aa0 100644 --- a/Source/WebCore/platform/graphics/filters/FELighting.h +++ b/Source/WebCore/platform/graphics/filters/FELighting.h @@ -36,6 +36,10 @@ #include "SpotLightSource.h" #include <wtf/Uint8ClampedArray.h> +namespace WTF { +template<typename Type> class ParallelJobs; +} + // Common base class for FEDiffuseLighting and FESpecularLighting namespace WebCore { @@ -76,7 +80,7 @@ protected: }; template<typename Type> - friend class ParallelJobs; + friend class WTF::ParallelJobs; struct PlatformApplyGenericParameters { FELighting* filter; diff --git a/Source/WebCore/platform/graphics/filters/FEMorphology.cpp b/Source/WebCore/platform/graphics/filters/FEMorphology.cpp index 9e720f74a..cae3d9f3d 100644 --- a/Source/WebCore/platform/graphics/filters/FEMorphology.cpp +++ b/Source/WebCore/platform/graphics/filters/FEMorphology.cpp @@ -170,7 +170,7 @@ void FEMorphology::platformApply(PaintingData* paintingData) { int optimalThreadNumber = (paintingData->width * paintingData->height) / s_minimalArea; if (optimalThreadNumber > 1) { - ParallelJobs<PlatformApplyParameters> parallelJobs(&WebCore::FEMorphology::platformApplyWorker, optimalThreadNumber); + WTF::ParallelJobs<PlatformApplyParameters> parallelJobs(&WebCore::FEMorphology::platformApplyWorker, optimalThreadNumber); int numOfThreads = parallelJobs.numberOfJobs(); if (numOfThreads > 1) { // Split the job into "jobSize"-sized jobs but there a few jobs that need to be slightly larger since diff --git a/Source/WebCore/platform/graphics/filters/FETurbulence.h b/Source/WebCore/platform/graphics/filters/FETurbulence.h index 84ff11261..ab7e7d03c 100644 --- a/Source/WebCore/platform/graphics/filters/FETurbulence.h +++ b/Source/WebCore/platform/graphics/filters/FETurbulence.h @@ -28,6 +28,10 @@ #include "FilterEffect.h" #include "Filter.h" +namespace WTF { +template<typename Type> class ParallelJobs; +} + namespace WebCore { enum TurbulenceType { @@ -107,7 +111,7 @@ private: }; template<typename Type> - friend class ParallelJobs; + friend class WTF::ParallelJobs; struct FillRegionParameters { FETurbulence* filter; |