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

Unified Diff: src/core/SkDistanceFieldGen.h

Issue 178543007: Add new module for distance field generation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix absolute value Created 6 years, 9 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: src/core/SkDistanceFieldGen.h
diff --git a/src/core/SkDistanceFieldGen.h b/src/core/SkDistanceFieldGen.h
new file mode 100755
index 0000000000000000000000000000000000000000..1a2c7c70d45f3c2ea1bdb3ca593dd008bc9575d2
--- /dev/null
+++ b/src/core/SkDistanceFieldGen.h
@@ -0,0 +1,16 @@
+/*
+ * 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 SkDistanceFieldGen_DEFINED
+#define SkDistanceFieldGen_DEFINED
+
+// this assumes the client has already allocated the necessary space in distanceField
bsalomon 2014/03/10 17:58:41 It seems like this could use some more descriptive
jvanverth1 2014/03/10 18:42:06 Done.
+bool SkGenerateDistanceFieldFromImage(unsigned char* distanceField,
+ unsigned char* image,
+ int w, int h,
+ int distanceMagnitude);
+
+#endif
« no previous file with comments | « gyp/gpu.gyp ('k') | src/core/SkDistanceFieldGen.cpp » ('j') | src/core/SkDistanceFieldGen.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698