diff options
author | joshualitt <joshualitt@chromium.org> | 2016-03-09 10:07:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-09 10:07:02 -0800 |
commit | e0449cf9f43e179a809eb1b87ca3bf77cf6f1222 (patch) | |
tree | aaa1df0e986009305e7e14def016d3f8b04cd8b3 /tools/skiaserve/Request.h | |
parent | 0fcfb7525f60eabfdaf9761c75c7d4fd1b46d0c5 (diff) |
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
Diffstat (limited to 'tools/skiaserve/Request.h')
-rw-r--r-- | tools/skiaserve/Request.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h index 0b974e7423..0a2b17a401 100644 --- a/tools/skiaserve/Request.h +++ b/tools/skiaserve/Request.h @@ -31,6 +31,7 @@ struct Request { // 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 @@ struct Request { // 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; |