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

Side by Side 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 warning 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 unified diff | Download patch
« no previous file with comments | « gyp/gpu.gyp ('k') | src/core/SkDistanceFieldGen.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkDistanceFieldGen_DEFINED
8 #define SkDistanceFieldGen_DEFINED
9
10 /** Given 8-bit mask data, generate the associated distance field
11
12 * @param distanceField The distance field to be generated. Should already be allocated
13 * by the client with the padding below.
14 * @param image 8-bit mask we're using to generate the distance fie ld.
15 * @param w Width of the image.
16 * @param h Height of the image.
17 * @param distanceMagnitude Largest possible absolute value for the distance. T he distance field
18 * will be padded to w + 2*distanceMagnitude, h + 2*di stanceMagnitude.
19 */
20 bool SkGenerateDistanceFieldFromImage(unsigned char* distanceField,
21 const unsigned char* image,
22 int w, int h,
23 int distanceMagnitude);
24
25 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gyp ('k') | src/core/SkDistanceFieldGen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698