Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1592)

Issue 131483005: Allocate SkPictureFlat::fScratch lazily. (Closed)

Created:
6 years, 11 months ago by Tom Hudson
Modified:
6 years, 11 months ago
Reviewers:
mtklein, tomhudson
CC:
skia-review_googlegroups.com, dominikg
Visibility:
Public.

Description

Allocate SkPictureFlat::fScratch lazily. Cuts out half to two thirds of allocations of this object. Since we're already lazily allocating fWriteBuffer, we don't have to add any other code complexity. BUG=http://skbug.com/1980 R=mtklein@google.com Committed: http://code.google.com/p/skia/source/detail?r=12992

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M src/core/SkPictureFlat.h View 1 2 5 chunks +17 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tomhudson
PTAL? This was written before your https://code.google.com/p/skia/issues/detail?id=1980#c3, so is pretty simple, but it seems like ...
6 years, 11 months ago (2014-01-09 13:57:13 UTC) #1
mtklein
just small stuff https://codereview.chromium.org/131483005/diff/40001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.chromium.org/131483005/diff/40001/src/core/SkPictureFlat.h#newcode379 src/core/SkPictureFlat.h:379: , fScratchSize(kScratchSizeGuess) For consistency, let's make ...
6 years, 11 months ago (2014-01-09 14:38:58 UTC) #2
tomhudson
https://codereview.chromium.org/131483005/diff/40001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.chromium.org/131483005/diff/40001/src/core/SkPictureFlat.h#newcode379 src/core/SkPictureFlat.h:379: , fScratchSize(kScratchSizeGuess) On 2014/01/09 14:38:58, mtklein wrote: > For ...
6 years, 11 months ago (2014-01-09 14:49:31 UTC) #3
mtklein
lgtm
6 years, 11 months ago (2014-01-09 15:06:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/131483005/80001
6 years, 11 months ago (2014-01-09 15:06:17 UTC) #5
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 16:45:52 UTC) #6
Message was sent while issue was closed.
Change committed as 12992

Powered by Google App Engine
This is Rietveld 408576698