aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops
diff options
context:
space:
mode:
authorGravatar deanm <deanm@chromium.org>2016-04-26 14:09:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-26 14:09:01 -0700
commit12670eb63b743283cf6f0e6e568c1713756e4006 (patch)
tree9904b5f60c5aa8f3ee7bbee3d1a4456f2c62eb1e /src/pathops
parent0b55664afc854b03082c467505b1a811721bcd7a (diff)
pathops: Add missing header guards in two files.
Guards were missing in SkIntersectionHelper.h and SkPathOpsTSect.h. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1914873002 Review URL: https://codereview.chromium.org/1914873002
Diffstat (limited to 'src/pathops')
-rw-r--r--src/pathops/SkIntersectionHelper.h5
-rw-r--r--src/pathops/SkPathOpsTSect.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/pathops/SkIntersectionHelper.h b/src/pathops/SkIntersectionHelper.h
index 647b94b35f..9a8a582af6 100644
--- a/src/pathops/SkIntersectionHelper.h
+++ b/src/pathops/SkIntersectionHelper.h
@@ -4,6 +4,9 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#ifndef SkIntersectionHelper_DEFINED
+#define SkIntersectionHelper_DEFINED
+
#include "SkOpContour.h"
#include "SkOpSegment.h"
#include "SkPath.h"
@@ -106,3 +109,5 @@ public:
private:
SkOpSegment* fSegment;
};
+
+#endif
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h
index 074fe37654..01ab8c6590 100644
--- a/src/pathops/SkPathOpsTSect.h
+++ b/src/pathops/SkPathOpsTSect.h
@@ -4,6 +4,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#ifndef SkPathOpsTSect_DEFINED
+#define SkPathOpsTSect_DEFINED
#include "SkChunkAlloc.h"
#include "SkPathOpsBounds.h"
@@ -2241,3 +2243,5 @@ void SkTSect<TCurve, OppCurve>::BinarySearch(SkTSect<TCurve, OppCurve>* sect1,
}
SkASSERT(intersections->used() <= TCurve::kMaxIntersections);
}
+
+#endif