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

Unified Diff: tools/skiaserve/Request.h

Issue 1741043003: A bit more privacy for SkiaServe's Request (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 10 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 | tools/skiaserve/Request.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Request.h
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h
index 568518644c62711e5f4f0f59651c0e2930653960..fd015dc7cf8590f3ca307b2f920b0a6ab6392547 100644
--- a/tools/skiaserve/Request.h
+++ b/tools/skiaserve/Request.h
@@ -30,14 +30,14 @@ struct Request {
Request(SkString rootUrl);
SkData* drawToPng(int n);
- void drawToCanvas(int n);
SkCanvas* getCanvas();
- SkData* writeCanvasToPng(SkCanvas* canvas);
SkBitmap* getBitmapFromCanvas(SkCanvas* canvas);
bool enableGPU(bool enable);
bool hasPicture() const { return SkToBool(fPicture.get()); }
int getLastOp() const { return fDebugCanvas->getSize() - 1; }
+ bool initPictureFromStream(SkStream*);
+
// Returns the json list of ops as an SkData
SkData* getJsonOps(int n);
@@ -52,14 +52,16 @@ struct Request {
static const int kImageHeight;
UploadContext* fUploadContext;
- SkAutoTUnref<SkPicture> fPicture;
SkAutoTUnref<SkDebugCanvas> fDebugCanvas;
UrlDataManager fUrlDataManager;
private:
+ SkData* writeCanvasToPng(SkCanvas* canvas);
+ void drawToCanvas(int n);
SkSurface* createCPUSurface();
SkSurface* createGPUSurface();
+ SkAutoTUnref<SkPicture> fPicture;
SkAutoTDelete<GrContextFactory> fContextFactory;
SkAutoTUnref<SkSurface> fSurface;
bool fGPUEnabled;
« no previous file with comments | « no previous file | tools/skiaserve/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698