aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/TextBlobBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/TextBlobBench.cpp')
-rw-r--r--bench/TextBlobBench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/TextBlobBench.cpp b/bench/TextBlobBench.cpp
index d110b8d2bb..0ef5eb9654 100644
--- a/bench/TextBlobBench.cpp
+++ b/bench/TextBlobBench.cpp
@@ -25,7 +25,7 @@
class TextBlobBench : public Benchmark {
public:
TextBlobBench()
- : fTypeface(NULL) {
+ : fTypeface(nullptr) {
}
protected:
@@ -37,14 +37,14 @@ protected:
const char* text = "Hello blob!";
SkTDArray<uint16_t> glyphs;
size_t len = strlen(text);
- glyphs.append(paint.textToGlyphs(text, len, NULL));
+ glyphs.append(paint.textToGlyphs(text, len, nullptr));
paint.textToGlyphs(text, len, glyphs.begin());
SkTextBlobBuilder builder;
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
const SkTextBlobBuilder::RunBuffer& run = builder.allocRun(paint, glyphs.count(), 10, 10,
- NULL);
+ nullptr);
memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t));
fBlob.reset(builder.build());