From 681287eb67f13e12fbcca96e956dea77c2661583 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Fri, 16 Mar 2018 11:34:15 -0400 Subject: 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 Commit-Queue: Cary Clark --- docs/SkIRect_Reference.bmh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/SkIRect_Reference.bmh') diff --git a/docs/SkIRect_Reference.bmh b/docs/SkIRect_Reference.bmh index 0d7924ce07..7c79c552b1 100644 --- a/docs/SkIRect_Reference.bmh +++ b/docs/SkIRect_Reference.bmh @@ -1489,9 +1489,10 @@ Asserts if either a or b is empty, and if SK_DEBUG is defined. #Example SkIRect result; - bool intersected = result.intersectNoEmptyCheck({ 10, 40, 50, 80 }, { 30, 60, 70, 90 }); - SkDebugf("intersection: %d, %d, %d, %d\n", - result.left(), result.top(), result.right(), result.bottom()); + if (result.intersectNoEmptyCheck({ 10, 40, 50, 80 }, { 30, 60, 70, 90 })) { + SkDebugf("intersection: %d, %d, %d, %d\n", + result.left(), result.top(), result.right(), result.bottom()); + } #StdOut intersection: 30, 60, 50, 80 ## -- cgit v1.2.3