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

Unified Diff: samplecode/SampleApp.cpp

Issue 1279123007: SkPDF: allow PDF module to be disabled in DM and SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-11 (Tuesday) 10:04:57 EDT : #if SK_SUPPORT_PDF Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/tests.gypi ('k') | src/doc/SkDocument_PDF_None.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « gyp/tests.gypi ('k') | src/doc/SkDocument_PDF_None.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698