aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fonts/SkTestSVGTypeface.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-05-31 14:50:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-01 14:30:56 +0000
commit39ccf5d386ae07d4fdfaac6c6e89c325efb61255 (patch)
treece1771c8f7c93057d5c27c0b84c54ab65743ff18 /tools/fonts/SkTestSVGTypeface.cpp
parent1989c4995c9a5c6441e80a95de289bc870aabedb (diff)
Fix compile when SK_XML undefined
Change-Id: Ia23b07434939acbf544854b94c4b10810c20ae1a Reviewed-on: https://skia-review.googlesource.com/131221 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tools/fonts/SkTestSVGTypeface.cpp')
-rw-r--r--tools/fonts/SkTestSVGTypeface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/fonts/SkTestSVGTypeface.cpp b/tools/fonts/SkTestSVGTypeface.cpp
index 199c3b5df6..0ab59cfb28 100644
--- a/tools/fonts/SkTestSVGTypeface.cpp
+++ b/tools/fonts/SkTestSVGTypeface.cpp
@@ -5,6 +5,10 @@
* found in the LICENSE file.
*/
+#include "SkTestSVGTypeface.h"
+
+#ifdef SK_XML
+
#include "Resources.h"
#include "SkAdvancedTypefaceMetrics.h"
#include "SkBitmap.h"
@@ -35,7 +39,6 @@
#include "SkSize.h"
#include "SkStream.h"
#include "SkSurface.h"
-#include "SkTestSVGTypeface.h"
#include "SkTDArray.h"
#include "SkTemplates.h"
#include "SkUtils.h"
@@ -1296,3 +1299,4 @@ void SkTestSVGTypeface::exportTtxColr(SkWStream* out) const {
out->writeText("</ttFont>\n");
}
+#endif // SK_XML