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

Unified Diff: include/utils/SkPatchUtils.h

Issue 424663006: SkCanvas interface for drawing a patch. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Renamed static functions Created 6 years, 5 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
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
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | src/core/SkGeometry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698