Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1202)

Unified Diff: src/core/SkRecordDraw.cpp

Issue 507113002: Partially revert 749e42acb26c37a2d11196fc9e80c93158e5bbda. (Closed) Base URL: https://skia.googlesource.com/skia.git@m38_2125
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index 4ca398574e76185dadfeca61a9e2463bfbf68307..c9e029b8db67f11a59c9844a3128f5042931dedf 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -189,29 +189,19 @@ private:
this->pushControl();
}
- static bool PaintMayAffectTransparentBlack(const SkPaint* paint) {
- // FIXME: this is very conservative
- return paint && (paint->getImageFilter() || paint->getColorFilter());
- }
-
SkIRect popSaveBlock() {
// We're done the Save block. Apply the block's bounds to all control ops inside it.
SaveBounds sb;
fSaveStack.pop(&sb);
-
- // If the paint affects transparent black, we can't trust any of our calculated bounds.
- const SkIRect& bounds =
- PaintMayAffectTransparentBlack(sb.paint) ? fCurrentClipBounds : sb.bounds;
-
while (sb.controlOps --> 0) {
- this->popControl(bounds);
+ this->popControl(sb.bounds);
}
// This whole Save block may be part another Save block.
- this->updateSaveBounds(bounds);
+ this->updateSaveBounds(sb.bounds);
// If called from a real Restore (not a phony one for balance), it'll need the bounds.
- return bounds;
+ return sb.bounds;
}
void pushControl() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698