Index: src/utils/SkPatchUtils.h |
diff --git a/src/utils/SkPatchUtils.h b/src/utils/SkPatchUtils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..885be84511f044821e2cd5a5dcd49dd02eaa7527 |
--- /dev/null |
+++ b/src/utils/SkPatchUtils.h |
@@ -0,0 +1,23 @@ |
+/* |
+ * Copyright 2014 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef SkPatchUtils_DEFINED |
+#define SkPatchUtils_DEFINED |
+ |
+#include "SkPatch.h" |
+#include "SkMatrix.h" |
+ |
+class SK_API SkPatchUtils { |
+ |
+public: |
+ /** |
+ * Method that calculates a level of detail (number of subdivisions) for a patch in both axis. |
+ */ |
+ static SkIPoint GetLevelOfDetail(const SkPatch& patch, const SkMatrix* matrix); |
bsalomon
2014/08/04 13:22:56
*Maybe* SkISize is more appropriate here, but not
|
+}; |
+ |
+#endif |