Description[blink] Pass SkBitmap by reference in WebImageLayer::setBitmap
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.
Along with this, it has to do some book keeping with respect to reference counts, updating pixel lock count
etc.
This overhead, albeit minor, can be avoided by passing SkBitmap as reference.
R=abarth@chromium.org, eseidel@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182486
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Added a FIXME! #Patch Set 3 : Simplified blink side! #
Messages
Total messages: 16 (4 generated)
|