Reduce ref counting in SkPictureRecorder.
authormtklein <mtklein@chromium.org>
Mon, 27 Apr 2015 15:54:23 +0000 (08:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 15:54:23 +0000 (08:54 -0700)
commit00c2af8b731085a7fe456e689b70f019a34ef7dd
treed1297903bde9cd7481d131212277b6baa1a9df26
parent6393c0653e5338a093c3908a410bdfd2ea1bdcab
Reduce ref counting in SkPictureRecorder.

This may be a small help to slimming paint:

  picture_overhead_draw 1.25us -> 1.22us    0.98x
  picture_overhead_nodraw    318ns ->  276ns    0.87x

It certainly cannot hurt performance.

BUG=chromium:470553

TBR=reed@google.com
No public API changes.

Review URL: https://codereview.chromium.org/1098183003
include/core/SkPicture.h
src/core/SkPicture.cpp
src/core/SkPictureRecorder.cpp