diff options
Diffstat (limited to 'src/animator')
-rw-r--r-- | src/animator/SkDisplayApply.cpp | 2 | ||||
-rw-r--r-- | src/animator/SkSnapshot.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/animator/SkDisplayApply.cpp b/src/animator/SkDisplayApply.cpp index 0d5f09d342..776d08fd72 100644 --- a/src/animator/SkDisplayApply.cpp +++ b/src/animator/SkDisplayApply.cpp @@ -463,7 +463,7 @@ void SkApply::endSave(int index) { int count = (int) (size / sizeof(SkScalar)); int activeIndex = fActive->fDrawIndex + index; SkOperand* last = new SkOperand[count]; - SkAutoTDelete<SkOperand> autoLast(last); + std::unique_ptr<SkOperand> autoLast(last); if (type != SkType_MemberProperty) { info->getValue(target, last, count); SkOperand* saveOperand = fActive->fSaveRestore[activeIndex]; diff --git a/src/animator/SkSnapshot.cpp b/src/animator/SkSnapshot.cpp index 4d35432bd7..fbaedff730 100644 --- a/src/animator/SkSnapshot.cpp +++ b/src/animator/SkSnapshot.cpp @@ -42,7 +42,7 @@ bool SkSnapshot::draw(SkAnimateMaker& maker) { if (!encoder) { return false; } - SkAutoTDelete<SkImageEncoder> ad(encoder); + std::unique_ptr<SkImageEncoder> ad(encoder); SkString name(filename); if (sequence) { |