Index: src/core/SkBBoxHierarchyRecord.cpp |
diff --git a/src/core/SkBBoxHierarchyRecord.cpp b/src/core/SkBBoxHierarchyRecord.cpp |
index 1868e65325e9b49954aa59e30c002b6670c507c9..8cdd1d96189ab4909cd495807b8ab2f2817a6da2 100644 |
--- a/src/core/SkBBoxHierarchyRecord.cpp |
+++ b/src/core/SkBBoxHierarchyRecord.cpp |
@@ -41,14 +41,9 @@ SkCanvas::SaveLayerStrategy SkBBoxHierarchyRecord::willSaveLayer(const SkRect* b |
(NULL != paint->getColorFilter())); |
SkRect drawBounds; |
if (paintAffectsTransparentBlack) { |
- if (bounds) { |
- drawBounds = *bounds; |
- this->getTotalMatrix().mapRect(&drawBounds); |
- } else { |
- SkIRect deviceBounds; |
- this->getClipDeviceBounds(&deviceBounds); |
- drawBounds.set(deviceBounds); |
- } |
+ SkIRect deviceBounds; |
+ this->getClipDeviceBounds(&deviceBounds); |
+ drawBounds.set(deviceBounds); |
} |
fStateTree->appendSaveLayer(this->writeStream().bytesWritten()); |
SkCanvas::SaveLayerStrategy strategy = this->INHERITED::willSaveLayer(bounds, paint, flags); |