From 8eaf64ae12696d4189d3cea9f023658494cf82b8 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Wed, 11 Apr 2018 11:59:18 -0400 Subject: 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 Commit-Queue: Florin Malita --- gn/tests.gni | 1 + 1 file changed, 1 insertion(+) (limited to 'gn/tests.gni') 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", -- cgit v1.2.3