diff options
author | 2016-10-27 09:30:08 -0700 | |
---|---|---|
committer | 2016-10-27 09:30:08 -0700 | |
commit | 6bd5284415bd983b0628c4941dff5def40018f5a (patch) | |
tree | 7de7e45431f76db69807204ecdce3ed6fcc4d9e8 /include/private/GrAuditTrail.h | |
parent | 56380524d903f27627a75e2e1189463999725008 (diff) |
Remove SkAutoTUnref and SkAutoTDelete from public includes.
This also makes the required changed to src, tests, and tools. The few
public APIs modified by this change appear to be unused outside of Skia.
Removing these from the public API makes it easier to ensure users are
no longer using them.
This also updates GrGpu::wrapBackendXXX and the
::onWrapBackendXXX methods to clarify ownership.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2448593002
Review-Url: https://codereview.chromium.org/2448593002
Diffstat (limited to 'include/private/GrAuditTrail.h')
-rw-r--r-- | include/private/GrAuditTrail.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/private/GrAuditTrail.h b/include/private/GrAuditTrail.h index 3bb7bea435..b39f13f362 100644 --- a/include/private/GrAuditTrail.h +++ b/include/private/GrAuditTrail.h @@ -134,7 +134,7 @@ private: int fBatchListID; int fChildID; }; - typedef SkTArray<SkAutoTDelete<Batch>, true> BatchPool; + typedef SkTArray<std::unique_ptr<Batch>, true> BatchPool; typedef SkTArray<Batch*> Batches; @@ -144,14 +144,14 @@ private: Batches fChildren; uint32_t fRenderTargetUniqueID; }; - typedef SkTArray<SkAutoTDelete<BatchNode>, true> BatchList; + typedef SkTArray<std::unique_ptr<BatchNode>, true> BatchList; void copyOutFromBatchList(BatchInfo* outBatchInfo, int batchListID); template <typename T> static void JsonifyTArray(SkString* json, const char* name, const T& array, bool addComma); - + BatchPool fBatchPool; SkTHashMap<uint32_t, int> fIDLookup; SkTHashMap<int, Batches*> fClientIDLookup; |