4882f97829
- expand SkParsePath to support relative path encoding - introduce a new SkSVGCanvas flag for clients to opt into relative encoding Bug: skia:11981 Change-Id: I2d6c63254df23311f1a86dee9481bde9531c3b61 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/406876 Reviewed-by: Tyler Denniston <tdenniston@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@google.com>
26 lines
526 B
C++
26 lines
526 B
C++
|
|
/*
|
|
* 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 SkParsePath_DEFINED
|
|
#define SkParsePath_DEFINED
|
|
|
|
#include "include/core/SkPath.h"
|
|
|
|
class SkString;
|
|
|
|
class SK_API SkParsePath {
|
|
public:
|
|
static bool FromSVGString(const char str[], SkPath*);
|
|
|
|
enum class PathEncoding { Absolute, Relative };
|
|
static void ToSVGString(const SkPath&, SkString*, PathEncoding = PathEncoding::Absolute);
|
|
};
|
|
|
|
#endif
|