don't abort drawing based on layer size

git-svn-id: http://skia.googlecode.com/svn/trunk@514 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2010-02-26 22:04:15 +00:00
parent 38203fb491
commit 940584d300

View File

@ -156,11 +156,8 @@ void SkLayer::draw(SkCanvas* canvas, SkScalar opacity) {
#endif
opacity = SkScalarMul(opacity, this->getOpacity());
if (opacity <= 0 || this->getSize().isEmpty()) {
#if 0
SkDebugf("---- abort drawing %p opacity %g size [%g %g]\n",
this, opacity, m_size.width(), m_size.height());
#endif
if (opacity <= 0) {
// SkDebugf("---- abort drawing %p opacity %g\n", this, opacity);
return;
}