aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-02-08 14:10:40 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-08 19:34:50 +0000
commit4c790bd7dd8a6edacfc39b65b7043742331ab4da (patch)
tree1d66da0bfa6b7627315388b0d3f712897ea03bbd /tools/sk_tool_utils.h
parentb9fc24e465767db8bd9dbddfd67c905392346e66 (diff)
add writePixels to SkSurface --> so we can remove it from canvas
Bug: skia: Change-Id: Ib35d7bdc113c3fd9f6dfacb42ec61aaa448cb165 Reviewed-on: https://skia-review.googlesource.com/105623 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/sk_tool_utils.h')
-rw-r--r--tools/sk_tool_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index a1b5b7fe37..6c1adf8e26 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -70,10 +70,11 @@ namespace sk_tool_utils {
void release_portable_typefaces();
/**
- * Call canvas->writePixels() by using the pixels from bitmap, but with an info that claims
+ * Call writePixels() by using the pixels from bitmap, but with an info that claims
* the pixels are colorType + alphaType
*/
void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType);
+ void write_pixels(SkSurface*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType);
/**
* Returns true iff all of the pixels between the two images differ by <= the maxDiff value