aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-14 19:07:28 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-14 19:07:28 +0000
commit6132eb9607b1fbfd73dc9645aaa2f70d14857ce6 (patch)
tree17dfa37ca29c8fda76ce79f19d085a0387a88d34
parenta9baf11e135c6cd2be213975e49a4afdeadd26fa (diff)
speculative fix for crbug.com/147406 -- disabling save/clip/restore peephole
optimization, to see if it reduces crash rates. git-svn-id: http://skia.googlecode.com/svn/trunk@5556 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkPictureRecord.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index 9c488491f6..73a3ab549a 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -162,6 +162,13 @@ static inline uint32_t getSkipableSize(unsigned drawType) {
* the restore() call. If we still need the restore(), return false.
*/
static bool collapseSaveClipRestore(SkWriter32* writer, int32_t offset) {
+ // Some unexplained crashes in Chrome may be caused by this. Disabling
+ // for now to see if it helps.
+ // crbug.com/147406
+#if 1
+ return false;
+#endif
+
#ifdef TRACK_COLLAPSE_STATS
gCollapseCalls += 1;
#endif