diff options
author | 2012-10-02 15:54:26 +0000 | |
---|---|---|
committer | 2012-10-02 15:54:26 +0000 | |
commit | a3301b6d1527d7a8c59760c219db741b8c8915a3 (patch) | |
tree | 003b7efb95e8b58e4f46cb4baf49f033285d0eb7 /src/core/SkPictureRecord.cpp | |
parent | 43b4ed5b0cb7842c96caa58fcd7c804c72b3d4a4 (diff) |
reenable peephole optimization for save/clip/restore, with build flag
SK_DISABLE_PICTURE_PEEPHOLE_OPTIMIZATION to disable it (optional)
git-svn-id: http://skia.googlecode.com/svn/trunk@5770 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index 60e51d1829..ddb2528c3b 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -163,7 +163,7 @@ 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 +#ifdef SK_DISABLE_PICTURE_PEEPHOLE_OPTIMIZATION return false; #endif |