aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-08-11 17:21:21 +0000
committerGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-08-11 17:21:21 +0000
commit4484d23ab47d4b0941ba6931e5d4edb891f073d2 (patch)
treec7dee1bbbe0e509444908a05a7a358b3e7d3f722 /include
parentcd21c809a9b4a68916bed6c9cb9012f251e3664f (diff)
Remove assertion in getAddrLCD.
Because the underlying mask extends a pixel to the left and right (or top and bottom on vertical LCDs), the requested pixel can actaully be one pixel outside the bounds, thus this assertion is incorrect. http://codereview.appspot.com/105077 git-svn-id: http://skia.googlecode.com/svn/trunk@312 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkMask.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/core/SkMask.h b/include/core/SkMask.h
index 6cbf37a189..608010dcc0 100644
--- a/include/core/SkMask.h
+++ b/include/core/SkMask.h
@@ -100,7 +100,6 @@ struct SkMask {
*/
const uint32_t* getAddrLCD(int x, int y) const {
SkASSERT(fFormat == kHorizontalLCD_Format || fFormat == kVerticalLCD_Format);
- SkASSERT(fBounds.contains(x, y));
SkASSERT(fImage != NULL);
return reinterpret_cast<const uint32_t*>(fImage + SkAlign4(fRowBytes * fBounds.height())) +