chromium/third_party/skia/src/gpu/ganesh/geometry/GrStyledShape.cpp

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

#include "include/core/SkArc.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkPoint.h"
#include "include/core/SkStrokeRec.h"
#include "include/private/SkIDChangeListener.h"
#include "include/private/base/SkAlign.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTo.h"

#include <algorithm>
#include <cstring>
#include <utility>


GrStyledShape& GrStyledShape::operator=(const GrStyledShape& that) {}

static bool is_inverted(bool originalIsInverted, GrStyledShape::FillInversion inversion) {}

GrStyledShape GrStyledShape::MakeFilled(const GrStyledShape& original, FillInversion inversion) {}

SkRect GrStyledShape::styledBounds() const {}

// If the path is small enough to be keyed from its data this returns key length, otherwise -1.
static int path_key_from_data_size(const SkPath& path) {}

// Writes the path data key into the passed pointer.
static void write_path_key_from_data(const SkPath& path, uint32_t* origKey) {}

int GrStyledShape::unstyledKeySize() const {}

void GrStyledShape::writeUnstyledKey(uint32_t* key) const {}

void GrStyledShape::setInheritedKey(const GrStyledShape &parent, GrStyle::Apply apply,
                                    SkScalar scale) {}

const SkPath* GrStyledShape::originalPathForListeners() const {}

void GrStyledShape::addGenIDChangeListener(sk_sp<SkIDChangeListener> listener) const {}

GrStyledShape GrStyledShape::MakeArc(const SkArc& arc,
                                     const GrStyle& style,
                                     DoSimplify doSimplify) {}

GrStyledShape::GrStyledShape(const GrStyledShape& that)
        :{}

GrStyledShape::GrStyledShape(const GrStyledShape& parent, GrStyle::Apply apply, SkScalar scale) {}

bool GrStyledShape::asRRect(SkRRect* rrect, bool* inverted) const {}

bool GrStyledShape::asLine(SkPoint pts[2], bool* inverted) const {}

bool GrStyledShape::asNestedRects(SkRect rects[2]) const {}

class AutoRestoreInverseness {};

void GrStyledShape::simplify() {}

void GrStyledShape::simplifyStroke() {}