diff options
author | Cary Clark <caryclark@skia.org> | 2018-03-16 11:34:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-16 18:11:35 +0000 |
commit | 681287eb67f13e12fbcca96e956dea77c2661583 (patch) | |
tree | 6722e6e7174d0eadbc49dddf6a6c022c25c6dc56 /docs/SkCanvas_Reference.bmh | |
parent | a3c68df565ebeb1607cc5c5561b1cb416f36c2ad (diff) |
more imageinfo text and warnings and cleanup
more imageinfo text
rewrote many examples to fix newly exposed compiler warnings
marked a couple of YUV method bodies as deprecated
also cleaned up line endings to use the linux style
R=bsalomon@google.com
TBR=caryclark@google.com
Docs-Preview: https://skia.org/?cl=112302
Bug: skia:6898
Change-Id: I89626a27353aa84526f9b9475d927bd0e9d8f0d5
Reviewed-on: https://skia-review.googlesource.com/112302
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'docs/SkCanvas_Reference.bmh')
-rw-r--r-- | docs/SkCanvas_Reference.bmh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/docs/SkCanvas_Reference.bmh b/docs/SkCanvas_Reference.bmh index a43b5fc172..de33770122 100644 --- a/docs/SkCanvas_Reference.bmh +++ b/docs/SkCanvas_Reference.bmh @@ -4529,7 +4529,7 @@ void draw(SkCanvas* canvas) { bitmap.installPixels(SkImageInfo::MakeA8(8, 8), (void*) pixels, sizeof(pixels[0])); SkPaint paint; - paint.setMaskFilter(SkBlurMaskFilter::Make(kSolid_SkBlurStyle, 6)); + paint.setMaskFilter(SkMaskFilter::MakeBlur(kSolid_SkBlurStyle, 6)); for (auto color : { SK_ColorRED, SK_ColorBLUE, 0xFF007F00} ) { paint.setColor(color); canvas->drawBitmapRect(bitmap, SkRect::MakeWH(8, 8), SkRect::MakeWH(32, 32), &paint); @@ -4972,14 +4972,6 @@ void draw(SkCanvas* canvas) { } left = right; } - const int xDivs[] = { center.fLeft, center.fRight }; - const int yDivs[] = { center.fTop, center.fBottom }; - SkCanvas::Lattice::RectType fillTypes[3][3]; - memset(fillTypes, 0, sizeof(fillTypes)); - fillTypes[1][1] = SkCanvas::Lattice::kTransparent; - SkColor dummy[9]; // temporary pending bug fix - SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs), - SK_ARRAY_COUNT(yDivs), nullptr, dummy }; sk_sp<SkImage> image = SkImage::MakeFromBitmap(bitmap); SkImage* imagePtr = image.get(); for (auto dest: { 20, 30, 40, 60, 90 } ) { @@ -5509,7 +5501,6 @@ void draw(SkCanvas* canvas) { recordingCanvas->scale(1.2f, 1.4f); } sk_sp<SkPicture> playback = recorder.finishRecordingAsPicture(); - const SkPicture* playbackPtr = playback.get(); canvas->drawPicture(playback); canvas->scale(2, 2); canvas->translate(50, 0); |