Motivation: without this, we break Blink.
BUG=skia:
NOTREECHECKS=true
NOTRY=true
R=robertphillips@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/
140903002
git-svn-id: http://skia.googlecode.com/svn/trunk@13107
2bbb7eff-a529-9590-31e7-
b0007b416f81
SkASSERT(fPixelRef);
SkASSERT(fPixelLockCount > 0);
SkASSERT(fPixelRef->isLocked());
+#if !defined(SK_SUPPORT_LEGACY_ONLOCKPIXELS)
SkASSERT(fPixelRef->rowBytes() == fRowBytes);
+#endif
SkASSERT(fPixelRefOrigin.fX >= 0);
SkASSERT(fPixelRefOrigin.fY >= 0);
SkASSERT(fPixelRef->info().fWidth >= (int)fWidth + fPixelRefOrigin.fX);
SkASSERT(fPixelRef->info().fHeight >= (int)fHeight + fPixelRefOrigin.fY);
+#if !defined(SK_SUPPORT_LEGACY_ONLOCKPIXELS)
SkASSERT(fPixelRef->rowBytes() >= fWidth * fBytesPerPixel);
+#endif
} else {
SkASSERT(NULL == fColorTable);
}