aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-27 17:38:17 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-27 17:38:17 +0000
commit889bd8bd7f604acae0a6303365bc82c06da1e6f3 (patch)
tree288c5df190fdb5cde4be14801bd8e70747d0fca5
parent41ecf9253dc00c6688594d4209d1f0ddd3a3dd77 (diff)
Make SkMath.h less visible in public header files.
git-svn-id: http://skia.googlecode.com/svn/trunk@2340 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--include/core/Sk64.h1
-rw-r--r--include/core/SkFixed.h2
-rw-r--r--include/core/SkPaint.h1
-rw-r--r--include/core/SkPoint.h1
-rw-r--r--include/utils/SkParse.h1
-rw-r--r--include/xml/SkDOM.h1
-rw-r--r--include/xml/SkXMLParser.h1
-rw-r--r--src/core/Sk64.cpp1
-rw-r--r--src/core/SkBitmapProcState_matrix.h1
-rw-r--r--src/core/SkEdge.cpp1
-rw-r--r--src/effects/SkBlurMask.cpp1
-rw-r--r--src/effects/SkEmbossMask.cpp1
-rw-r--r--src/views/SkProgressView.cpp1
-rw-r--r--tests/BlurTest.cpp1
-rw-r--r--tests/ColorTest.cpp1
-rw-r--r--tests/MathTest.cpp1
-rw-r--r--tests/MatrixTest.cpp1
-rw-r--r--tests/PathCoverageTest.cpp1
18 files changed, 12 insertions, 7 deletions
diff --git a/include/core/Sk64.h b/include/core/Sk64.h
index 24b94d1699..b86e0be7d4 100644
--- a/include/core/Sk64.h
+++ b/include/core/Sk64.h
@@ -11,7 +11,6 @@
#define Sk64_DEFINED
#include "SkFixed.h"
-#include "SkMath.h"
/** \class Sk64
diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h
index 625074fe65..0af5d9ddd4 100644
--- a/include/core/SkFixed.h
+++ b/include/core/SkFixed.h
@@ -10,7 +10,7 @@
#ifndef SkFixed_DEFINED
#define SkFixed_DEFINED
-#include "SkMath.h"
+#include "SkTypes.h"
/** \file SkFixed.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index a1dc59c179..e2b3be7645 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -11,7 +11,6 @@
#define SkPaint_DEFINED
#include "SkColor.h"
-#include "SkMath.h"
#include "SkXfermode.h"
class SkAutoGlyphCache;
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index fedc404a33..6063a093ba 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -10,7 +10,6 @@
#ifndef SkPoint_DEFINED
#define SkPoint_DEFINED
-#include "SkMath.h"
#include "SkScalar.h"
/** \struct SkIPoint
diff --git a/include/utils/SkParse.h b/include/utils/SkParse.h
index cde85b80e7..7491cd67ec 100644
--- a/include/utils/SkParse.h
+++ b/include/utils/SkParse.h
@@ -11,7 +11,6 @@
#define SkParse_DEFINED
#include "SkColor.h"
-#include "SkMath.h"
class SkParse {
public:
diff --git a/include/xml/SkDOM.h b/include/xml/SkDOM.h
index 900cbba4cf..60145c8efa 100644
--- a/include/xml/SkDOM.h
+++ b/include/xml/SkDOM.h
@@ -11,7 +11,6 @@
#define SkDOM_DEFINED
#include "SkChunkAlloc.h"
-#include "SkMath.h"
#include "SkScalar.h"
#include "SkTemplates.h"
diff --git a/include/xml/SkXMLParser.h b/include/xml/SkXMLParser.h
index ef2db4a9f0..bd8c2f15ee 100644
--- a/include/xml/SkXMLParser.h
+++ b/include/xml/SkXMLParser.h
@@ -10,7 +10,6 @@
#ifndef SkXMLParser_DEFINED
#define SkXMLParser_DEFINED
-#include "SkMath.h"
#include "SkString.h"
class SkStream;
diff --git a/src/core/Sk64.cpp b/src/core/Sk64.cpp
index 619652a064..0d74904ef9 100644
--- a/src/core/Sk64.cpp
+++ b/src/core/Sk64.cpp
@@ -8,6 +8,7 @@
#include "Sk64.h"
+#include "SkMath.h"
#define shift_left(hi, lo) \
hi = (hi << 1) | (lo >> 31); \
diff --git a/src/core/SkBitmapProcState_matrix.h b/src/core/SkBitmapProcState_matrix.h
index 2b9a35dc58..f427e9681c 100644
--- a/src/core/SkBitmapProcState_matrix.h
+++ b/src/core/SkBitmapProcState_matrix.h
@@ -6,6 +6,7 @@
* found in the LICENSE file.
*/
+#include "SkMath.h"
#define SCALE_NOFILTER_NAME MAKENAME(_nofilter_scale)
diff --git a/src/core/SkEdge.cpp b/src/core/SkEdge.cpp
index c634ac730f..aab1c76120 100644
--- a/src/core/SkEdge.cpp
+++ b/src/core/SkEdge.cpp
@@ -9,6 +9,7 @@
#include "SkEdge.h"
#include "SkFDot6.h"
+#include "SkMath.h"
/*
In setLine, setQuadratic, setCubic, the first thing we do is to convert
diff --git a/src/effects/SkBlurMask.cpp b/src/effects/SkBlurMask.cpp
index 5dc9f448c3..b139714a3d 100644
--- a/src/effects/SkBlurMask.cpp
+++ b/src/effects/SkBlurMask.cpp
@@ -8,6 +8,7 @@
#include "SkBlurMask.h"
+#include "SkMath.h"
#include "SkTemplates.h"
/** The sum buffer is an array of u32 to hold the accumulated sum of all of the
diff --git a/src/effects/SkEmbossMask.cpp b/src/effects/SkEmbossMask.cpp
index dffd2befdd..300494b448 100644
--- a/src/effects/SkEmbossMask.cpp
+++ b/src/effects/SkEmbossMask.cpp
@@ -8,6 +8,7 @@
#include "SkEmbossMask.h"
+#include "SkMath.h"
static inline int nonzero_to_one(int x) {
#if 0
diff --git a/src/views/SkProgressView.cpp b/src/views/SkProgressView.cpp
index 8a506f44a1..d82b48ee24 100644
--- a/src/views/SkProgressView.cpp
+++ b/src/views/SkProgressView.cpp
@@ -7,6 +7,7 @@
*/
#include "SkWidget.h"
#include "SkCanvas.h"
+#include "SkMath.h"
#include "SkShader.h"
#include "SkInterpolator.h"
#include "SkTime.h"
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp
index 04aef8e263..cdfa8d21cd 100644
--- a/tests/BlurTest.cpp
+++ b/tests/BlurTest.cpp
@@ -8,6 +8,7 @@
#include "Test.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
+#include "SkMath.h"
#include "SkPaint.h"
#include "SkRandom.h"
diff --git a/tests/ColorTest.cpp b/tests/ColorTest.cpp
index 69c6f2689d..0efb8925a9 100644
--- a/tests/ColorTest.cpp
+++ b/tests/ColorTest.cpp
@@ -7,6 +7,7 @@
*/
#include "Test.h"
#include "SkColor.h"
+#include "SkMath.h"
#include "SkUnPreMultiply.h"
static void test_premul(skiatest::Reporter* reporter) {
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index b9e21ae1e4..7440dfde1a 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -7,6 +7,7 @@
*/
#include "Test.h"
#include "SkFloatingPoint.h"
+#include "SkMath.h"
#include "SkPoint.h"
#include "SkRandom.h"
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp
index 4638fe1975..abc0d54fce 100644
--- a/tests/MatrixTest.cpp
+++ b/tests/MatrixTest.cpp
@@ -6,6 +6,7 @@
* found in the LICENSE file.
*/
#include "Test.h"
+#include "SkMath.h"
#include "SkMatrix.h"
#include "SkRandom.h"
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp
index d9683c120f..91de17802e 100644
--- a/tests/PathCoverageTest.cpp
+++ b/tests/PathCoverageTest.cpp
@@ -5,6 +5,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "SkMath.h"
#include "SkPoint.h"
#include "SkScalar.h"
#include "Test.h"