Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4950)

Issue 6903063: When cloning picture, use a bitmap heap to avoid flattening bitmaps. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by Leon
Modified:
11 years, 6 months ago
Reviewers:
DerekS, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

When cloning picture, use a bitmap heap to avoid flattening bitmaps. When cloning a picture, the paints are reflattened. Use a bitmap heap so the bitmaps do not get unnecessarily get flattened as well. For br.337, this speeds up bench_pictures timing the clone operation (not yet checked in, but currently timing making five clones) from around 180 ms to around 24ms. Committed: https://code.google.com/p/skia/source/detail?r=6740

Patch Set 1 #

Patch Set 2 : Didn't mean to create patch set 2... #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M src/core/SkPicturePlayback.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Leon
11 years, 6 months ago (2012-12-10 17:07:38 UTC) #1
reed1
https://codereview.appspot.com/6903063/diff/2001/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.appspot.com/6903063/diff/2001/src/core/SkPicturePlayback.cpp#newcode182 src/core/SkPicturePlayback.cpp:182: */ Can we store the bitmapheap on the stack? ...
11 years, 6 months ago (2012-12-10 17:28:02 UTC) #2
Leon
Although I cannot put the heap on the stack, I did move the code around ...
11 years, 6 months ago (2012-12-10 17:49:49 UTC) #3
reed1
On 2012/12/10 17:49:49, scroggo-work wrote: > Although I cannot put the heap on the stack, ...
11 years, 6 months ago (2012-12-10 18:00:35 UTC) #4
reed1
Should the caller be assigning the bitmapheap themselves, rather than us at this level?
11 years, 6 months ago (2012-12-10 18:02:17 UTC) #5
reed1
11 years, 6 months ago (2012-12-10 18:12:45 UTC) #6
all thoughts for a later cl perhaps.... lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b