Fix up picture clip bounds in SkiaServe
BUG=skia:5067
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1781653002
Review URL: https://codereview.chromium.org/1781653002
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h
index 0b974e7..0a2b17a 100644
--- a/tools/skiaserve/Request.h
+++ b/tools/skiaserve/Request.h
@@ -31,6 +31,7 @@
// draws to skia draw op N, highlighting the Mth batch(-1 means no highlight)
SkData* drawToPng(int n, int m = -1);
+ SkData* writeOutSkp();
SkCanvas* getCanvas();
SkBitmap* getBitmapFromCanvas(SkCanvas* canvas);
bool enableGPU(bool enable);
@@ -48,9 +49,8 @@
// Returns json with the viewMatrix and clipRect
SkData* getJsonInfo(int n);
- // TODO probably want to make this configurable
- static const int kImageWidth;
- static const int kImageHeight;
+ // returns the color of the pixel at (x,y) in the canvas
+ SkColor getPixel(int x, int y);
UploadContext* fUploadContext;
SkAutoTUnref<SkDebugCanvas> fDebugCanvas;