don't abort drawing based on the layer's size, since it need not clip its children
diff --git a/src/utils/SkLayer.cpp b/src/utils/SkLayer.cpp
index fe61c02..888afec 100644
--- a/src/utils/SkLayer.cpp
+++ b/src/utils/SkLayer.cpp
@@ -115,7 +115,7 @@
void SkLayer::getLocalTransform(SkMatrix* matrix) const {
matrix->setTranslate(m_position.fX, m_position.fY);
-
+
SkScalar tx = SkScalarMul(m_anchorPoint.fX, m_size.width());
SkScalar ty = SkScalarMul(m_anchorPoint.fY, m_size.height());
matrix->preTranslate(tx, ty);
@@ -156,11 +156,8 @@
#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;
}