Fix SkTArray copy construction
authorFlorin Malita <fmalita@chromium.org>
Thu, 9 Mar 2017 18:34:09 +0000 (13:34 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 9 Mar 2017 19:17:16 +0000 (19:17 +0000)
commitc2d5bd01170ffd9fb0b41f20e0d1770249b4a300
treed149cf135dd71293195283c4cacce146cda025be
parentb1d800dc228df12b31213dc1968bcd8680ec2d0e
Fix SkTArray copy construction

We can't use memcpy for copy construction, even when MEM_COPY == true.

Change-Id: I50eb369f0fbf77e8f0ad5a148c67d46df0d3ab0e
Reviewed-on: https://skia-review.googlesource.com/9487
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
include/private/SkTArray.h
tests/TArrayTest.cpp