From 4c790bd7dd8a6edacfc39b65b7043742331ab4da Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 8 Feb 2018 14:10:40 -0500 Subject: 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 Reviewed-by: Brian Salomon --- tools/sk_tool_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/sk_tool_utils.h') 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 -- cgit v1.2.3