aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-07-20 11:24:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-20 11:24:52 -0700
commitde996a0df79038c0559f8681233e1a82220d2f3d (patch)
tree6d990c9db5f8f9a1f4e9833380a9a847060ec9a9 /src/core
parentc526da94e4f2dc0c8521099dad2118c5d6b8da4a (diff)
re-disable save/restore peephole optimization
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkRecordOpts.cpp5
1 files changed, 4 insertions, 1 deletions
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);