diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-21 20:48:46 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-21 20:48:46 +0000 |
commit | 0c95d664df57f01e1aa35d19ab3f355132043d05 (patch) | |
tree | 6af75e12dfe4571e4cae2cb8a021d41c21bf5cde /src/core | |
parent | 764ea792016d0b346c831ccfe5e892d8b99ad2d4 (diff) |
Remove a stray setReserve that causes dynamic allocation in picture creation.
This brings us down to about 10 calls to malloc per picture.
No measurable change in bench_record or bench_pictures.
BUG=
R=reed@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/132693009
git-svn-id: http://skia.googlecode.com/svn/trunk@13136 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index 4ae1c6b7df..0851e3ffe5 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -41,8 +41,6 @@ SkPictureRecord::SkPictureRecord(uint32_t flags, SkBaseDevice* device) : fPointWrites = fRectWrites = fTextWrites = 0; #endif - fRestoreOffsetStack.setReserve(32); - fBitmapHeap = SkNEW(SkBitmapHeap); fFlattenableHeap.setBitmapStorage(fBitmapHeap); fPathHeap = NULL; // lazy allocate |