Index: tools/skiaserve/Request.h |
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h |
index a3276fa38b503d1a9871fe7a1cb6a427d95e989b..f6ee994ecdab6045c2de0b228847bcb1f64bd9d0 100644 |
--- a/tools/skiaserve/Request.h |
+++ b/tools/skiaserve/Request.h |
@@ -39,6 +39,14 @@ struct Request { |
SkCanvas* getCanvas(); |
SkData* writeCanvasToPng(SkCanvas* canvas); |
SkBitmap* getBitmapFromCanvas(SkCanvas* canvas); |
+ bool hasPicture() const { return SkToBool(fPicture.get()); } |
+ int getLastOp() const { return fDebugCanvas->getSize() - 1; } |
+ |
+ // Returns the json list of ops as an SkData |
+ SkData* getJsonOps(int n); |
+ |
+ // Returns a json list of batches as an SkData |
+ SkData* getJsonBatchList(int n); |
// TODO probably want to make this configurable |
static const int kImageWidth; |