Flutter Engine
The Flutter Engine
SkReduceOrder.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 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 SkReduceOrder_DEFINED
8#define SkReduceOrder_DEFINED
9
10#include "include/core/SkPath.h"
14
15struct SkConic;
16struct SkPoint;
17
22 };
23
24 int reduce(const SkDCubic& cubic, Quadratics);
25 int reduce(const SkDLine& line);
26 int reduce(const SkDQuad& quad);
27
28 static SkPath::Verb Conic(const SkConic& conic, SkPoint* reducePts);
29 static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint* reducePts);
30 static SkPath::Verb Quad(const SkPoint pts[3], SkPoint* reducePts);
31
35};
36
37#endif
AI float conic(float tolerance, const SkPoint pts[], float w, const VectorXform &vectorXform=VectorXform())
Definition: WangsFormula.h:287
AI float cubic(float precision, const SkPoint pts[], const VectorXform &vectorXform=VectorXform())
Definition: WangsFormula.h:195
SkDCubic fCubic
Definition: SkReduceOrder.h:34
static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint *reducePts)
static SkPath::Verb Conic(const SkConic &conic, SkPoint *reducePts)
int reduce(const SkDCubic &cubic, Quadratics)
static SkPath::Verb Quad(const SkPoint pts[3], SkPoint *reducePts)