d6cf56fd34
This reverts commit 6fc4106a9d
.
Reason for revert: Blocking the Android roll
Original change's description:
> [svg] Relocate out of experimental
>
> Move the SVG rendering code to modules/svg, and componentize.
> Also split into include/src/utils.
>
> As external clients still reference the old header locations,
> introduce temporary forwarding headers to facilitate the migration.
>
> Change-Id: Ib289dbdcd80c16a01c47805e7242f2e08bebc165
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326948
> Reviewed-by: Tyler Denniston <tdenniston@google.com>
> Commit-Queue: Florin Malita <fmalita@google.com>
TBR=fmalita@chromium.org,fmalita@google.com,tdenniston@google.com
Change-Id: I386cf77a15a9e1d392029804abaf937dae53f435
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/327342
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
/*
|
|
* 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 "experimental/svg/model/SkSVGAttribute.h"
|
|
|
|
SkSVGPresentationAttributes SkSVGPresentationAttributes::MakeInitial() {
|
|
SkSVGPresentationAttributes result;
|
|
|
|
result.fFill.set(SkSVGPaint(SkSVGColorType(SK_ColorBLACK)));
|
|
result.fFillOpacity.set(SkSVGNumberType(1));
|
|
result.fFillRule.set(SkSVGFillRule(SkSVGFillRule::Type::kNonZero));
|
|
result.fClipRule.set(SkSVGFillRule(SkSVGFillRule::Type::kNonZero));
|
|
|
|
result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone));
|
|
result.fStrokeDashArray.set(SkSVGDashArray(SkSVGDashArray::Type::kNone));
|
|
result.fStrokeDashOffset.set(SkSVGLength(0));
|
|
result.fStrokeLineCap.set(SkSVGLineCap(SkSVGLineCap::Type::kButt));
|
|
result.fStrokeLineJoin.set(SkSVGLineJoin(SkSVGLineJoin::Type::kMiter));
|
|
result.fStrokeMiterLimit.set(SkSVGNumberType(4));
|
|
result.fStrokeOpacity.set(SkSVGNumberType(1));
|
|
result.fStrokeWidth.set(SkSVGLength(1));
|
|
|
|
result.fVisibility.set(SkSVGVisibility(SkSVGVisibility::Type::kVisible));
|
|
|
|
result.fColor.set(SkSVGColorType(SK_ColorBLACK));
|
|
|
|
return result;
|
|
}
|