Description[blink] 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://src.chromium.org/viewvc/blink?view=rev&revision=182559
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|