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

Unified Diff: include/core/SkLineClipper.h

Issue 339183002: move some headers out of public (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkGeometry.h ('k') | include/core/SkTDict.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkLineClipper.h
diff --git a/include/core/SkLineClipper.h b/include/core/SkLineClipper.h
deleted file mode 100644
index 8026890b8d0a6f38cf3363a07af70f1701b0bb16..0000000000000000000000000000000000000000
--- a/include/core/SkLineClipper.h
+++ /dev/null
@@ -1,47 +0,0 @@
-
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef SkLineClipper_DEFINED
-#define SkLineClipper_DEFINED
-
-#include "SkRect.h"
-#include "SkPoint.h"
-
-class SkLineClipper {
-public:
- enum {
- kMaxPoints = 4,
- kMaxClippedLineSegments = kMaxPoints - 1
- };
-
- /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
- lie completely above or below the clip. For portions to the left or
- right, turn those into vertical line segments that are aligned to the
- edge of the clip.
-
- Return the number of line segments that result, and store the end-points
- of those segments sequentially in lines as follows:
- 1st segment: lines[0]..lines[1]
- 2nd segment: lines[1]..lines[2]
- 3rd segment: lines[2]..lines[3]
- */
- static int ClipLine(const SkPoint pts[2], const SkRect& clip,
- SkPoint lines[kMaxPoints]);
-
- /* Intersect the line segment against the rect. If there is a non-empty
- resulting segment, return true and set dst[] to that segment. If not,
- return false and ignore dst[].
-
- ClipLine is specialized for scan-conversion, as it adds vertical
- segments on the sides to show where the line extended beyond the
- left or right sides. IntersectLine does not.
- */
- static bool IntersectLine(const SkPoint src[2], const SkRect& clip,
- SkPoint dst[2]);
-};
-
-#endif
« no previous file with comments | « include/core/SkGeometry.h ('k') | include/core/SkTDict.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698