Index: include/utils/SkPatchUtils.h |
diff --git a/include/utils/SkPatchUtils.h b/include/utils/SkPatchUtils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..59454e53545573194f842c455d150aa6ff99c964 |
--- /dev/null |
+++ b/include/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: |
+ // size in pixels of each partition per axis, adjust this knob |
+ static const int kPartitionSize = 30; |
bsalomon
2014/08/01 21:02:28
I'd move this into the cpp. It's not really part o
dandov
2014/08/01 21:25:01
Done.
|
+ |
+ static SkIPoint GetLevelOfDetail(const SkPatch& patch, const SkMatrix* matrix); |
+ |
+}; |
+ |
+#endif |