Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 2d12bfd67293bbaccc9107befbdb11d3ad6e317a..486feedb79f11241cae3b4713ef075d8241089b0 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -1171,8 +1171,10 @@ void SampleWindow::onDraw(SkCanvas* canvas) { |
void SampleWindow::saveToPdf() |
{ |
+#if SK_SUPPORT_PDF |
reed1
2015/08/11 15:41:04
Why are we guarding here? Do we not gracefully fai
|
fSaveToPdf = true; |
this->inval(NULL); |
+#endif // SK_SUPPORT_PDF |
} |
SkCanvas* SampleWindow::beforeChildren(SkCanvas* canvas) { |