chromium/third_party/skia/src/pathops/SkPathWriter.cpp

/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "src/pathops/SkPathWriter.h"

#include "include/core/SkTypes.h"
#include "include/private/base/SkMath.h"
#include "src/base/SkTSort.h"
#include "src/pathops/SkOpSegment.h"
#include "src/pathops/SkOpSpan.h"
#include "src/pathops/SkPathOpsDebug.h"
#include "src/pathops/SkPathOpsTypes.h"

usingnamespaceskia_private;

// wrap path to keep track of whether the contour is initialized and non-empty
SkPathWriter::SkPathWriter(SkPath& path)
    :{}

void SkPathWriter::close() {}

void SkPathWriter::conicTo(const SkPoint& pt1, const SkOpPtT* pt2, SkScalar weight) {}

void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkOpPtT* pt3) {}

bool SkPathWriter::deferredLine(const SkOpPtT* pt) {}

void SkPathWriter::deferredMove(const SkOpPtT* pt) {}

void SkPathWriter::finishContour() {}

void SkPathWriter::init() {}

bool SkPathWriter::isClosed() const {}

void SkPathWriter::lineTo() {}

bool SkPathWriter::matchedLast(const SkOpPtT* test) const {}

void SkPathWriter::moveTo() {}

void SkPathWriter::quadTo(const SkPoint& pt1, const SkOpPtT* pt2) {}

// if last point to be written matches the current path's first point, alter the
// last to avoid writing a degenerate lineTo when the path is closed
SkPoint SkPathWriter::update(const SkOpPtT* pt) {}

bool SkPathWriter::someAssemblyRequired() {}

bool SkPathWriter::changedSlopes(const SkOpPtT* ptT) const {}

class DistanceLessThan {};

    /*
        check start and end of each contour
        if not the same, record them
        match them up
        connect closest
        reassemble contour pieces into new path
    */
void SkPathWriter::assemble() {}