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 --- tools/skhello.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/skhello.cpp') diff --git a/tools/skhello.cpp b/tools/skhello.cpp index d1f8cb8192..0411b398b8 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -19,8 +19,7 @@ DEFINE_string2(outFile, o, "skhello", "The filename to write the image."); DEFINE_string2(text, t, "Hello", "The string to write."); static void doDraw(SkCanvas* canvas, const SkPaint& paint, const char text[]) { - SkRect bounds; - canvas->getClipBounds(&bounds); + SkRect bounds = canvas->getLocalClipBounds(); canvas->drawColor(SK_ColorWHITE); canvas->drawText(text, strlen(text), -- cgit v1.2.3