Avoid unneeded paint copies in SkDraw::drawBitmap
authorfmalita <fmalita@chromium.org>
Mon, 3 Oct 2016 20:46:58 +0000 (13:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Oct 2016 20:46:58 +0000 (13:46 -0700)
commitf85d2a4fa1b71e6ee28518431e2a34df5683bc81
tree864ca4d4bd44f1a7f9d688c2ca94d22d4ef643df
parentd368211a2a98125ba0dc29ce8bcaf28bfc65c358
Avoid unneeded paint copies in SkDraw::drawBitmap

Use SkTCopyOnFirstWrite to only copy when needed.

R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2389973003

Review-Url: https://codereview.chromium.org/2389973003
src/core/SkDraw.cpp