diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-06 16:59:36 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-06 16:59:36 +0000 |
commit | 45fc9d9b3f02799ba99f93650e643c74920c8836 (patch) | |
tree | 028ed27f352cd30c7ffe7afd1279ba733a773713 /src/core/SkPictureRecord.cpp | |
parent | 8c16ef55f6443e94a9a711832f3cbcd00b86e59c (diff) |
Put SkPictureRecord saveLayer optimization behind a compiler flag
https://codereview.appspot.com/7508044/
git-svn-id: http://skia.googlecode.com/svn/trunk@8009 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index c840834284..b0da855845 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -237,6 +237,10 @@ static bool is_simple(const SkPaint& p) { static bool remove_save_layer1(SkWriter32* writer, int32_t offset, SkPaintDictionary* paintDict) { +#ifdef SK_IGNORE_PICTURE_RECORD_SAVE_LAYER_OPT + return false; +#endif + int32_t restoreOffset = (int32_t)writer->size(); // back up to the save block |