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

Unified Diff: tools/skiaserve/Request.h

Issue 1733813004: Move some methods to SkiaServe's Request, this is still very leaky (Closed) Base URL: https://skia.googlesource.com/skia@skiaserve-2
Patch Set: kbudgeted stuff 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 fd18bdad9cb604032280b54940eea3b060b08e2c..a3276fa38b503d1a9871fe7a1cb6a427d95e989b 100644
--- a/tools/skiaserve/Request.h
+++ b/tools/skiaserve/Request.h
@@ -32,6 +32,18 @@ struct Request {
, fUrlDataManager(rootUrl)
, fGPUEnabled(false) {}
+ SkSurface* createCPUSurface();
+ SkSurface* createGPUSurface();
+ SkData* drawToPng(int n);
+ void drawToCanvas(int n);
+ SkCanvas* getCanvas();
+ SkData* writeCanvasToPng(SkCanvas* canvas);
+ SkBitmap* getBitmapFromCanvas(SkCanvas* canvas);
+
+ // TODO probably want to make this configurable
+ static const int kImageWidth;
+ static const int kImageHeight;
+
UploadContext* fUploadContext;
SkAutoTUnref<SkPicture> fPicture;
SkAutoTUnref<SkDebugCanvas> fDebugCanvas;
« 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