aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDistanceFieldGenFromVector.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-10-26 08:00:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-26 08:00:00 -0700
commitf93f5151612a4b1adfe1dad0490bd1c01ee73598 (patch)
tree636b2ee1dda259a4d90acc8906d90cfc0dd7fc9d /src/gpu/GrDistanceFieldGenFromVector.h
parentb8c48c0c55f7ff0c7103cc5d0555f8ce090b79fc (diff)
Revert of Generate Signed Distance Field directly from vector path (patchset #19 id:360001 of https://codereview.chromium.org/1643143002/ )
Reason for revert: Chrome crash Original issue's description: > Generate Signed Distance Field directly from vector path > > Add SkGenerateDistanceFieldFromPath API to generate signed distance field directly from SkPath. > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1643143002 > > Committed: https://skia.googlesource.com/skia/+/4de97a64e8829323a7070b623411d9f9ddb0cd0f > Committed: https://skia.googlesource.com/skia/+/e8f0a7b986f1e5583c9bc162efcdd92fd6430549 > Committed: https://skia.googlesource.com/skia/+/67c7c81a82b6351e9fbbf235084d7120162d9268 TBR=jvanverth@google.com,mtklein@google.com,wasim.abbas@arm.com,caryclark@google.com,reed@google.com,joel.liang@arm.com # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=skia: Review-Url: https://codereview.chromium.org/2447403002
Diffstat (limited to 'src/gpu/GrDistanceFieldGenFromVector.h')
-rw-r--r--src/gpu/GrDistanceFieldGenFromVector.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/gpu/GrDistanceFieldGenFromVector.h b/src/gpu/GrDistanceFieldGenFromVector.h
deleted file mode 100644
index 1d83ee28ff..0000000000
--- a/src/gpu/GrDistanceFieldGenFromVector.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 2016 ARM Ltd.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrDistanceFieldGenFromVector_DEFINED
-#define GrDistanceFieldGenFromVector_DEFINED
-
-#include "SkDistanceFieldGen.h"
-#include "SkPath.h"
-#include "SkMatrix.h"
-
-/** Given a vector path, generate the associated distance field.
-
- * @param distanceField The distance field to be generated. Should already be allocated
- * by the client with the padding defined in "SkDistanceFieldGen.h".
- * @param path The path we're using to generate the distance field.
- * @param matrix Transformation matrix for path.
- * @param width Width of the distance field.
- * @param height Height of the distance field.
- * @param rowBytes Size of each row in the distance field, in bytes.
- */
-bool GrGenerateDistanceFieldFromPath(unsigned char* distanceField,
- const SkPath& path, const SkMatrix& viewMatrix,
- int width, int height, size_t rowBytes);
-
-inline bool IsDistanceFieldSupportedFillType(SkPath::FillType fFillType)
-{
- return (SkPath::kEvenOdd_FillType == fFillType ||
- SkPath::kInverseEvenOdd_FillType == fFillType);
-}
-
-#endif