aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFilterFuzz.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-08-03 13:32:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-03 13:32:32 -0700
commitffae30db4ade45b469ac3432ec373b6f6daee6e7 (patch)
treeacef6794a40b4525c09301cdf07590dcb4358d5b /samplecode/SampleFilterFuzz.cpp
parentd1ec89b1aca8f37a460a425259a23275f4d9a81d (diff)
Convert SkAutoTUnref<SkData> to sk_sp<SkData>.
With the move from SkData::NewXXX to SkData::MakeXXX most SkAutoTUnref<SkData> were changed to sk_sp<SkData>. However, there are still a few SkAutoTUnref<SkData> around, so clean them up. Review-Url: https://codereview.chromium.org/2212493002
Diffstat (limited to 'samplecode/SampleFilterFuzz.cpp')
-rw-r--r--samplecode/SampleFilterFuzz.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp
index 7a53f4f18e..755e8fb458 100644
--- a/samplecode/SampleFilterFuzz.cpp
+++ b/samplecode/SampleFilterFuzz.cpp
@@ -738,7 +738,7 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) {
static SkImageFilter* make_serialized_image_filter() {
sk_sp<SkImageFilter> filter(make_image_filter(false));
- SkAutoTUnref<SkData> data(SkValidatingSerializeFlattenable(filter.get()));
+ sk_sp<SkData> data(SkValidatingSerializeFlattenable(filter.get()));
const unsigned char* ptr = static_cast<const unsigned char*>(data->data());
size_t len = data->size();
#ifdef SK_ADD_RANDOM_BIT_FLIPS