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

Side by Side Diff: src/gpu/GrDistanceFieldGenFromVector.h

Issue 2435753002: Revert of Generate Signed Distance Field directly from vector path (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 2 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.gypi ('k') | src/gpu/GrDistanceFieldGenFromVector.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 2016 ARM Ltd.
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
8 #ifndef GrDistanceFieldGenFromVector_DEFINED
9 #define GrDistanceFieldGenFromVector_DEFINED
10
11 #include "SkDistanceFieldGen.h"
12 #include "SkPath.h"
13 #include "SkMatrix.h"
14
15 /** Given a vector path, generate the associated distance field.
16
17 * @param distanceField The distance field to be generated. Should already be allocated
18 * by the client with the padding defined in "SkDistan ceFieldGen.h".
19 * @param path The path we're using to generate the distance field .
20 * @param matrix Transformation matrix for path.
21 * @param width Width of the distance field.
22 * @param height Height of the distance field.
23 * @param rowBytes Size of each row in the distance field, in bytes.
24 */
25 bool GrGenerateDistanceFieldFromPath(unsigned char* distanceField,
26 const SkPath& path, const SkMatrix& viewMat rix,
27 int width, int height, size_t rowBytes);
28
29 inline bool IsDistanceFieldSupportedFillType(SkPath::FillType fFillType)
30 {
31 return (SkPath::kEvenOdd_FillType == fFillType ||
32 SkPath::kInverseEvenOdd_FillType == fFillType);
33 }
34
35 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrDistanceFieldGenFromVector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698