Index: samplecode/SampleHT.cpp |
diff --git a/samplecode/SampleHT.cpp b/samplecode/SampleHT.cpp |
index 099adcc948db86733e6defd69f655c614c8ee93e..1989c3a7c638163d7faa4ebb1ea73942a7231a4f 100644 |
--- a/samplecode/SampleHT.cpp |
+++ b/samplecode/SampleHT.cpp |
@@ -127,7 +127,7 @@ public: |
HTDrawable* fDrawable; |
}; |
Rec fArray[N]; |
- SkAutoTUnref<SkDrawable> fRoot; |
+ sk_sp<SkDrawable> fRoot; |
SkMSec fTime; |
HTView() { |
@@ -140,7 +140,7 @@ public: |
canvas->drawDrawable(fArray[i].fDrawable); |
fArray[i].fDrawable->unref(); |
} |
- fRoot.reset(recorder.endRecordingAsDrawable()); |
+ fRoot = recorder.finishRecordingAsDrawable(); |
} |
protected: |
@@ -153,7 +153,7 @@ protected: |
} |
void onDrawContent(SkCanvas* canvas) override { |
- canvas->drawDrawable(fRoot); |
+ canvas->drawDrawable(fRoot.get()); |
} |
bool onAnimate(const SkAnimTimer& timer) override { |