commit | b746b1f59851b7af10fe91b4974872ec98b34d7f | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Wed Jan 06 08:43:51 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jan 06 19:05:00 2021 +0000 |
tree | 9f2af7067f2e77618950506577cf567cdad3662b | |
parent | c294b82260950c15c2c7307f7d6cc710ad98490e [diff] [blame] |
Pass sampling to surface.draw Bug: skia:7650 Change-Id: I97941a44faa4176f94d57a9c1626ac36b0c0c4ea Reviewed-on: https://skia-review.googlesource.com/c/skia/+/350557 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Mike Reed <reed@google.com>
diff --git a/docs/examples/Surface_draw.cpp b/docs/examples/Surface_draw.cpp index d4e9d71..4808836 100644 --- a/docs/examples/Surface_draw.cpp +++ b/docs/examples/Surface_draw.cpp
@@ -8,7 +8,7 @@ sk_sp<SkSurface> lil(big->makeSurface(SkImageInfo::MakeN32(32, 32, kPremul_SkAlphaType))); big->getCanvas()->clear(SK_ColorRED); lil->getCanvas()->clear(SK_ColorBLACK); - lil->draw(big->getCanvas(), 16, 16, nullptr); + lil->draw(big->getCanvas(), 16, 16); SkPixmap pixmap; if (big->peekPixels(&pixmap)) { SkBitmap bigBits;