diff options
author | 2016-11-03 14:40:50 -0400 | |
---|---|---|
committer | 2016-11-03 19:03:40 +0000 | |
commit | 145dbcd165d9d27298eb8888bc240e2d06a95464 (patch) | |
tree | 461ac2a3fe607bdf1d72fd72ae9451a58490a1bc /tools/gpu/TestContext.h | |
parent | b1c7f88df9ec40b4efb52d314304adfbaf95697c (diff) |
Remove SkAutoTDelete.
Replace with std::unique_ptr.
Change-Id: I5806cfbb30515fcb20e5e66ce13fb5f3b8728176
Reviewed-on: https://skia-review.googlesource.com/4381
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tools/gpu/TestContext.h')
-rw-r--r-- | tools/gpu/TestContext.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gpu/TestContext.h b/tools/gpu/TestContext.h index 8722a337b3..ecb61e3b2a 100644 --- a/tools/gpu/TestContext.h +++ b/tools/gpu/TestContext.h @@ -28,10 +28,10 @@ public: virtual bool isValid() const = 0; bool fenceSyncSupport() const { return fFenceSync != nullptr; } - FenceSync* fenceSync() { SkASSERT(fFenceSync); return fFenceSync; } + FenceSync* fenceSync() { SkASSERT(fFenceSync); return fFenceSync.get(); } bool gpuTimingSupport() const { return fGpuTimer != nullptr; } - GpuTimer* gpuTimer() const { SkASSERT(fGpuTimer); return fGpuTimer; } + GpuTimer* gpuTimer() const { SkASSERT(fGpuTimer); return fGpuTimer.get(); } bool getMaxGpuFrameLag(int *maxFrameLag) const { if (!fFenceSync) { @@ -81,8 +81,8 @@ public: virtual void finish() = 0; protected: - SkAutoTDelete<FenceSync> fFenceSync; - SkAutoTDelete<GpuTimer> fGpuTimer; + std::unique_ptr<FenceSync> fFenceSync; + std::unique_ptr<GpuTimer> fGpuTimer; TestContext(); |