Updating Xamarin/Microsoft file headers
[platform/upstream/libSkiaSharp.git] / src / c / sk_svg.cpp
1 /*
2  * Copyright 2014 Google Inc.
3  * Copyright 2015 Xamarin Inc.
4  * Copyright 2017 Microsoft Corporation. All rights reserved.
5  *
6  * Use of this source code is governed by a BSD-style license that can be
7  * found in the LICENSE file.
8  */
9
10 #include "SkSVGCanvas.h"
11
12 #include "sk_svg.h"
13
14 #include "sk_types_priv.h"
15
16 //////////////////////////////////////////////////////////////////////////////////////////////////
17
18 sk_canvas_t* sk_svgcanvas_create(const sk_rect_t* bounds, sk_xmlwriter_t* writer)
19 {
20     return ToCanvas(SkSVGCanvas::Make(AsRect(*bounds), AsXMLWriter(writer)).release());
21 }