aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-11-08 11:19:52 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-08 16:40:47 +0000
commit12f77343ee645d7b96e5d6a78370e5f5a38eaea4 (patch)
tree26d4e05886418d47b52ec1eae2230f86967d86c6 /include
parent70d2f43d82c32e0114789f20926b16b5bd86a445 (diff)
add surfaceprops param to SkCanvas::MakeRasterDirect
Bug: skia: Change-Id: I8b69280469cdf34c3c3cb126db9457a712143f88 Reviewed-on: https://skia-review.googlesource.com/68701 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 1043d74685..a6fe197caf 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -90,10 +90,12 @@ public:
width, or height, or both, may be zero
@param pixels pointer to destination pixels buffer
@param rowBytes interval from one SkSurface row to the next, or zero
+ @param props optional surfaceprops
@return SkCanvas if all parameters are valid; otherwise, nullptr
*/
static std::unique_ptr<SkCanvas> MakeRasterDirect(const SkImageInfo& info, void* pixels,
- size_t rowBytes);
+ size_t rowBytes,
+ const SkSurfaceProps* props = nullptr);
/** Allocates raster SkCanvas specified by inline image specification. Subsequent SkCanvas
calls draw into pixels.