diff options
author | Florin Malita <fmalita@chromium.org> | 2018-04-11 11:59:18 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-11 17:25:07 +0000 |
commit | 8eaf64ae12696d4189d3cea9f023658494cf82b8 (patch) | |
tree | 8709859d743611c84fbf8b7b188f0f8aa5737fb0 /gn/tests.gni | |
parent | 2b67005be0a4b0f043b9f08784ccba813668599e (diff) |
Fix SkTCopyOnFirstWrite copy semantics
The implicit SkTCopyOnFirstWrite copy-ctor and assignment operator are
incorrect: fObj must point to the local copy, not to the source copy
(when a copy has been made).
Add corrected explicit copy (and move) ctor + assignment operator.
Also add a get() helper to facilitate rawptr access.
Change-Id: Ie3983e12c04eae4f32c40e3e267618cf02008c20
Reviewed-on: https://skia-review.googlesource.com/120442
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gn/tests.gni')
-rw-r--r-- | gn/tests.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/tests.gni b/gn/tests.gni index 8fc7210aa7..0bbb6da936 100644 --- a/gn/tests.gni +++ b/gn/tests.gni @@ -265,6 +265,7 @@ tests_sources = [ "$_tests/TextureProxyTest.cpp", "$_tests/TextureStripAtlasManagerTest.cpp", "$_tests/Time.cpp", + "$_tests/TLazyTest.cpp", "$_tests/TopoSortTest.cpp", "$_tests/ToSRGBColorFilter.cpp", "$_tests/TraceMemoryDumpTest.cpp", |