Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Side by Side Diff: include/svg/SkSVGCanvas.h

Issue 902583006: Add SkSVGCanvas (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix win warning Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/tools.gyp ('k') | src/svg/SkSVGCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 #ifndef SkSVGCanvas_DEFINED
9 #define SkSVGCanvas_DEFINED
10
11 #include "SkCanvas.h"
12
13 class SkXMLWriter;
14
15 class SK_API SkSVGCanvas {
16 public:
17 /**
18 * Returns a new canvas that will generate SVG commands from its draw calls , and send
19 * them to the provided xmlwriter. Ownership of the xmlwriter is not transf ered to the canvas,
20 * but it must stay valid during the lifetime of the returned canvas.
21 *
22 * The canvas may buffer some drawing calls, so the output is not guarantee d to be valid
23 * or complete until the canvas instance is deleted.
24 *
25 * The 'bounds' parameter defines an initial SVG viewport (viewBox attribut e on the root
26 * SVG element).
27 */
28 static SkCanvas* Create(const SkRect& bounds, SkXMLWriter*);
29 };
30
31 #endif
OLDNEW
« no previous file with comments | « gyp/tools.gyp ('k') | src/svg/SkSVGCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698