aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/TextBlobBench.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-09-13 10:00:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-13 10:00:23 -0700
commit37283c28aa5bea2204c18956e74f83b238d7a891 (patch)
tree6ac125088f1df0c6d9380e323e873c72c8416b0b /bench/TextBlobBench.cpp
parentec44099979acd3e83ad93a15dbd9301856a90572 (diff)
Use sk_sp text blob APIs
SkTextBlobBuilder::build() -> make() SkAutoTUnref<const SkTextBlob> -> sk_sp<SkTextBlob> drawTextBlob(const SkTextBlob*) -> drawTextBlob(const sk_sp<SkTextBlob>&) BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2335493005 Review-Url: https://codereview.chromium.org/2335493005
Diffstat (limited to 'bench/TextBlobBench.cpp')
-rw-r--r--bench/TextBlobBench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/TextBlobBench.cpp b/bench/TextBlobBench.cpp
index 7c9b303430..b25c975579 100644
--- a/bench/TextBlobBench.cpp
+++ b/bench/TextBlobBench.cpp
@@ -44,7 +44,7 @@ protected:
nullptr);
memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t));
- fBlob.reset(builder.build());
+ fBlob = builder.make();
}
const char* onGetName() override {
@@ -62,9 +62,9 @@ protected:
private:
- SkAutoTUnref<const SkTextBlob> fBlob;
- SkTDArray<uint16_t> fGlyphs;
- sk_sp<SkTypeface> fTypeface;
+ sk_sp<SkTextBlob> fBlob;
+ SkTDArray<uint16_t> fGlyphs;
+ sk_sp<SkTypeface> fTypeface;
typedef Benchmark INHERITED;
};