From 3771a030b0b6686b0ec81359774836cc376ea3f4 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 11 Oct 2011 17:18:04 +0000 Subject: [PATCH] fix warnings (failed to return a bool) git-svn-id: http://skia.googlecode.com/svn/trunk@2455 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkAAClip.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/SkAAClip.cpp b/src/core/SkAAClip.cpp index 0dbdd0fbd8..2955b61070 100644 --- a/src/core/SkAAClip.cpp +++ b/src/core/SkAAClip.cpp @@ -234,6 +234,7 @@ bool SkAAClip::setRegion(const SkRegion& rgn) { clip.op(iter.rect(), SkRegion::kUnion_Op); } this->swap(clip); + return !this->isEmpty(); } /////////////////////////////////////////////////////////////////////////////// @@ -530,7 +531,7 @@ public: { unexpected(); } virtual const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE { - return false; + return NULL; } virtual void blitH(int x, int y, int width) SK_OVERRIDE { @@ -593,7 +594,8 @@ bool SkAAClip::setPath(const SkPath& path, const SkRegion* clip, bool doAA) { fBounds = ibounds; fRunHead = builder.finish(); - builder.dump(); + //builder.dump(); + return !this->isEmpty(); } ///////////////////////////////////////////////////////////////////////////////