From 918e144408ba218df919528f8b48c544f4767883 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 23 Jan 2017 11:39:45 -0500 Subject: change clip-bounds getters to always return the rect (actually fixes undefined result in getClipBounds) future CLs - update all callers to new apis - move/rename virtuals BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=7400 Change-Id: I45b93014e915c0d1c36d97d948c9ac8931f23258 Reviewed-on: https://skia-review.googlesource.com/7400 Reviewed-by: Brian Salomon Reviewed-by: Cary Clark Commit-Queue: Mike Reed --- bench/ChromeBench.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bench/ChromeBench.cpp') diff --git a/bench/ChromeBench.cpp b/bench/ChromeBench.cpp index 94c3f2587c..60d86f9a42 100644 --- a/bench/ChromeBench.cpp +++ b/bench/ChromeBench.cpp @@ -480,10 +480,11 @@ protected: SkIntToScalar(gmailScrollingRectSpec[i*3+1]), SkIntToScalar(gmailScrollingRectSpec[i*3+2])); } void validateBounds(SkCanvas* canvas) { - SkIRect bounds; - canvas->getClipDeviceBounds(&bounds); +#ifdef SK_DEBUG + SkIRect bounds = canvas->getDeviceClipBounds(); SkASSERT(bounds.right()-bounds.left() >= W); SkASSERT(bounds.bottom()-bounds.top() >= H); +#endif } -- cgit v1.2.3