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

Unified Diff: tools/skiaserve/Request.h

Issue 1781653002: Fix up picture clip bounds in SkiaServe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 4 years, 9 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') | tools/skiaserve/Request.cpp » ('J')
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 0b974e74237460e385a36f10126f8c6b6bfc208a..0a2b17a401dc3a4b0a9217ce6b50e058a9597fb6 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;
« no previous file with comments | « no previous file | tools/skiaserve/Request.cpp » ('j') | tools/skiaserve/Request.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698