/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStroke_DEFINED #define SkStroke_DEFINED #include "include/core/SkPaint.h" #include "include/core/SkPathTypes.h" #include "include/core/SkScalar.h" #include "include/private/base/SkAssert.h" #include "include/private/base/SkDebug.h" #include "include/private/base/SkTo.h" #include <cmath> #include <cstdint> class SkPath; struct SkRect; #ifdef SK_DEBUG extern bool gDebugStrokerErrorSet; extern SkScalar gDebugStrokerError; extern int gMaxRecursion[]; #endif /** \class SkStroke SkStroke is the utility class that constructs paths by stroking geometries (lines, rects, ovals, roundrects, paths). This is invoked when a geometry or text is drawn in a canvas with the kStroke_Mask bit set in the paint. */ class SkStroke { … }; #endif