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

Unified Diff: samplecode/SampleApp.h

Issue 634293004: use SkDocument to capture pdfs from SampleApp 'e' (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.h
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index 2e9a11c2a10f4d575fcfc83c4950f809bba74480..3980669e312ca59cfd54fdb7cda21b718a10c165 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -22,6 +22,7 @@ class GrRenderTarget;
class SkCanvas;
class SkData;
+class SkDocument;
class SkEvent;
class SkTypeface;
class SkViewFactory;
@@ -132,7 +133,6 @@ public:
bool handleTouch(int ownerId, float x, float y,
SkView::Click::State state);
void saveToPdf();
- SkData* getPDFData() { return fPDFData; }
void postInvalDelay();
DeviceType getDeviceType() const { return fDeviceType; }
@@ -173,8 +173,7 @@ private:
DeviceManager* fDevManager;
bool fSaveToPdf;
- SkCanvas* fPdfCanvas;
- SkData* fPDFData;
+ SkAutoTUnref<SkDocument> fPDFDocument;
bool fUseClip;
bool fNClip;
@@ -226,6 +225,7 @@ private:
void loadView(SkView*);
void updateTitle();
+ bool getRawTitle(SkString*);
bool zoomIn();
bool zoomOut();
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698