Pass arguments to SkRecords structs by const&.
authormtklein <mtklein@chromium.org>
Tue, 30 Jun 2015 16:49:49 +0000 (09:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 16:49:49 +0000 (09:49 -0700)
commitc845fa0788a2c7eb4f4a094d7a041edf979099c1
tree7d8d0b2565424e075cdfbc9d454c2a0903df47cb
parent439f23e563e2ef6a497f1894c8447921f1e1f7e2
Pass arguments to SkRecords structs by const&.

This has the effect of using delay_copy() on every argument,
obviating the need for delay_copy() and, crucially, having
to remember to call delay_copy().

All these constructors are fully inlined, so we'll never pay
a penalty for passing small things by reference... the compiler
can see that and just pass by value.

BUG=skia:

Review URL: https://codereview.chromium.org/1215523004
src/core/SkRecorder.cpp
src/core/SkRecords.h