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

Unified Diff: samplecode/SampleApp.h

Issue 1129603002: add DeferredCanvas mode to SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 55e3f555a30c15c8f26bb3f7315457ae3b7ea0b8..8fc1a905b1b7cba185fb8ed6148811af97aa4abd 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -22,6 +22,7 @@ class GrRenderTarget;
class SkCanvas;
class SkData;
+class SkDeferredCanvas;
class SkDocument;
class SkEvent;
class SkTypeface;
@@ -39,7 +40,7 @@ public:
kANGLE_DeviceType,
#endif // SK_ANGLE
#endif // SK_SUPPORT_GPU
-
+ kDeferred_DeviceType,
kDeviceTypeCnt
};
@@ -161,6 +162,8 @@ private:
int fCurrIndex;
SkPictureRecorder fRecorder;
+ SkAutoTDelete<SkSurface> fDeferredSurface;
+ SkAutoTDelete<SkDeferredCanvas> fDeferredCanvas;
SkPath fClipPath;
SkTouchGesture fGesture;
« 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