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

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..42603878f6949cf8d82b2e331ba457268c376416 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -9,6 +9,7 @@
#define SampleApp_DEFINED
#include "SkOSMenu.h"
robertphillips 2015/05/05 18:53:33 Just pre-decl rather than include ?
reed1 2015/05/05 19:08:11 Done.
+#include "SkDeferredCanvas.h"
#include "SkPath.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
@@ -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