1/*
2 * Copyright 2015 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 "SkSVGCanvas.h"
9#include "SkSVGDevice.h"
10
11SkCanvas* SkSVGCanvas::Create(const SkRect& bounds, SkXMLWriter* writer) {
12    // TODO: pass full bounds to the device
13    SkISize size = bounds.roundOut().size();
14    SkAutoTUnref<SkBaseDevice> device(SkSVGDevice::Create(size, writer));
15
16    return SkNEW_ARGS(SkCanvas, (device));
17}
18