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

Unified Diff: samplecode/SampleApp.h

Issue 2201323003: add pipecanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add test for writeImage Created 4 years, 3 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
Index: samplecode/SampleApp.h
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index 75416426b463941f58f0cee1c7bc7d41225ea418..2ac9f0553eaaa3fc02ee367343fbd20e07cae3ad 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -13,11 +13,14 @@
#include "SkPicture.h"
#include "SkPictureRecorder.h"
#include "SkScalar.h"
+#include "SkStream.h"
#include "SkTDArray.h"
#include "SkTouchGesture.h"
#include "SkWindow.h"
#include "timer/Timer.h"
+#include "SkPipe.h"
+
class GrContext;
class GrRenderTarget;
@@ -165,6 +168,10 @@ private:
int fCurrIndex;
+ std::unique_ptr<SkDynamicMemoryWStream> fPipeStream;
+ SkPipeSerializer fPipeSerializer;
+ SkPipeDeserializer fPipeDeserializer;
+
SkPictureRecorder fRecorder;
SkAutoTDelete<SkCanvas> fFlagsFilterCanvas;
SkPath fClipPath;
« no previous file with comments | « include/core/SkWriteBuffer.h ('k') | samplecode/SampleApp.cpp » ('j') | src/core/SkPipe.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698