aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skiaserve/Request.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-03-09 10:07:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-09 10:07:02 -0800
commite0449cf9f43e179a809eb1b87ca3bf77cf6f1222 (patch)
treeaaa1df0e986009305e7e14def016d3f8b04cd8b3 /tools/skiaserve/Request.h
parent0fcfb7525f60eabfdaf9761c75c7d4fd1b46d0c5 (diff)
Fix up picture clip bounds in SkiaServe
Diffstat (limited to 'tools/skiaserve/Request.h')
-rw-r--r--tools/skiaserve/Request.h6
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;