| Index: bench/TextBlobBench.cpp
|
| diff --git a/bench/TextBlobBench.cpp b/bench/TextBlobBench.cpp
|
| index d110b8d2bbd171d9b2fb800af093004a51fe1bef..0ef5eb9654e58cae7f454979fcc0ad9b85a24034 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());
|
|
|