Home | History | Annotate | Download | only in model
      1 /*
      2  * Copyright 2016 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 
      8 #include "SkSVGAttribute.h"
      9 
     10 SkSVGPresentationAttributes SkSVGPresentationAttributes::MakeInitial() {
     11     SkSVGPresentationAttributes result;
     12 
     13     result.fFill.set(SkSVGPaint(SkSVGColorType(SK_ColorBLACK)));
     14     result.fFillOpacity.set(SkSVGNumberType(1));
     15     result.fFillRule.set(SkSVGFillRule(SkSVGFillRule::Type::kNonZero));
     16 
     17     result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone));
     18     result.fStrokeLineCap.set(SkSVGLineCap(SkSVGLineCap::Type::kButt));
     19     result.fStrokeLineJoin.set(SkSVGLineJoin(SkSVGLineJoin::Type::kMiter));
     20     result.fStrokeOpacity.set(SkSVGNumberType(1));
     21     result.fStrokeWidth.set(SkSVGLength(1));
     22 
     23     return result;
     24 }
     25