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

Unified Diff: tools/skiaserve/Request.cpp

Issue 1755563003: add /img/n/m endpoint to skiaserve (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: tweak Created 4 years, 10 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 | « tools/skiaserve/Request.h ('k') | tools/skiaserve/urlhandlers/ImgHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Request.cpp
diff --git a/tools/skiaserve/Request.cpp b/tools/skiaserve/Request.cpp
index 92e18fda51fd233fd8ed4c7d23cac941dae04be5..8ffcc36f77781a685d0303913faf5d1ce081f5e6 100644
--- a/tools/skiaserve/Request.cpp
+++ b/tools/skiaserve/Request.cpp
@@ -93,13 +93,13 @@ SkCanvas* Request::getCanvas() {
return target;
}
-void Request::drawToCanvas(int n) {
+void Request::drawToCanvas(int n, int m) {
SkCanvas* target = this->getCanvas();
- fDebugCanvas->drawTo(target, n);
+ fDebugCanvas->drawTo(target, n, m);
}
-SkData* Request::drawToPng(int n) {
- this->drawToCanvas(n);
+SkData* Request::drawToPng(int n, int m) {
+ this->drawToCanvas(n, m);
return writeCanvasToPng(this->getCanvas());
}
« no previous file with comments | « tools/skiaserve/Request.h ('k') | tools/skiaserve/urlhandlers/ImgHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698