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
This commit is contained in:
reed@google.com 2012-09-14 19:07:28 +00:00
parent a9baf11e13
commit 6132eb9607

View File

@ -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