From de996a0df79038c0559f8681233e1a82220d2f3d Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 20 Jul 2016 11:24:51 -0700 Subject: re-disable save/restore peephole optimization BUG=skia:5548, 629408 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2163283002 Review-Url: https://codereview.chromium.org/2163283002 --- src/core/SkRecordOpts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/SkRecordOpts.cpp b/src/core/SkRecordOpts.cpp index aa07facb19..d51785bd54 100644 --- a/src/core/SkRecordOpts.cpp +++ b/src/core/SkRecordOpts.cpp @@ -276,7 +276,10 @@ void SkRecordOptimize(SkRecord* record) { // out junk for other optimization passes. Right now, nothing needs it, // and the bounding box hierarchy will do the work of skipping no-op // Save-NoDraw-Restore sequences better than we can here. - SkRecordNoopSaveRestores(record); + // As there is a known problem with this peephole and drawAnnotation, disable this. + // If we want to enable this we must first fix this bug: + // https://bugs.chromium.org/p/skia/issues/detail?id=5548 +// SkRecordNoopSaveRestores(record); SkRecordNoopSaveLayerDrawRestores(record); SkRecordMergeSvgOpacityAndFilterLayers(record); -- cgit v1.2.3