Description[chromium] 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, jamesr@chromium.org
Committed: https://crrev.com/9461415e61c4995ca4606c9a51ac33d24ebba908
Cr-Commit-Position: refs/heads/master@{#296143}
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Patch Set 3 : #Patch Set 4 : Removed inline virtual function! #Messages
Total messages: 14 (4 generated)
|