Description[chromium] Pass SkBitmap by reference in WebNinePatchLayer::setBitmap and refactor
Although passing SkBitmap by value doesn't copy the underlying pixels, it indeed
involves memcpy (~64 bytes to be precise) to replicate the settings from the
other bitmap in the copy constructor.
This overhead, albeit minor, can be avoided by passing SkBitmap as reference.
R=jamesr@chromium.org
Committed: https://crrev.com/f814f45c209ebc36f28251d8de602c099a54262e
Cr-Commit-Position: refs/heads/master@{#296330}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|