diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index f1c08d7009..c9456db969 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -328,7 +328,7 @@ static int setup_cpu_bench(const double overhead, Target* target, Benchmark* ben // ------------------------- < FLAGS_overheadGoal // overhead + N * Bench Time // - // where bench_plus_overhead ≈ overhead + Bench Time. + // where bench_plus_overhead ~=~ overhead + Bench Time. // // Doing some math, we get: // diff --git a/gm/windowrectangles.cpp b/gm/windowrectangles.cpp index e16392b423..156da58bf2 100644 --- a/gm/windowrectangles.cpp +++ b/gm/windowrectangles.cpp @@ -75,7 +75,7 @@ private: }; /** - * This is a simple helper class for resetting a canvas's clip to our test’s SkClipStack. + * This is a simple helper class for resetting a canvas's clip to our test's SkClipStack. */ class ReplayClipStackVisitor final : public SkCanvasClipVisitor { public: diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h index 418a837437..64291fb17c 100644 --- a/include/core/SkDocument.h +++ b/include/core/SkDocument.h @@ -46,7 +46,7 @@ public: */ struct PDFMetadata { /** - * The document’s title. + * The document's title. */ SkString fTitle; /** diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp index d9c1079ba0..7d5a79a72a 100644 --- a/src/effects/SkDisplacementMapEffect.cpp +++ b/src/effects/SkDisplacementMapEffect.cpp @@ -571,7 +571,7 @@ void GrGLDisplacementMapEffect::emitCode(EmitArgs& args) { const char* scaleUni = args.fUniformHandler->getUniformCStr(fScaleUni); const char* dColor = "dColor"; const char* cCoords = "cCoords"; - const char* nearZero = "1e-6"; // Since 6.10352e−5 is the smallest half float, use + const char* nearZero = "1e-6"; // Since 6.10352e-5 is the smallest half float, use // a number smaller than that to approximate 0, but // leave room for 32-bit float GPU rounding errors. diff --git a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.h b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.h index d7a53a9b16..4fc0072846 100644 --- a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.h +++ b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.h @@ -12,7 +12,7 @@ class SkBitSet; class SkGlyphCache; -/* PDF 32000-1:2008, page 270: "The array’s elements have a variable +/* PDF 32000-1:2008, page 270: "The array's elements have a variable format that can specify individual widths for consecutive CIDs or one width for a range of CIDs". */ sk_sp SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache, diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp index 42068843bf..ee5c19bba4 100644 --- a/src/pdf/SkPDFMetadata.cpp +++ b/src/pdf/SkPDFMetadata.cpp @@ -164,7 +164,7 @@ public: stream->write(streamBegin, strlen(streamBegin)); // Do not compress this. The standard requires that a // program that does not understand PDF can grep for - // "write(fXML.c_str(), fXML.size()); static const char streamEnd[] = "\nendstream"; stream->write(streamEnd, strlen(streamEnd)); diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index 65200e46a7..2c2f373db5 100644 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -780,7 +780,7 @@ CGRGBPixel* Offscreen::getCG(const SkScalerContext_Mac& context, const SkGlyph& // Prior to 10.10, CTFontDrawGlyphs acted like CGContextShowGlyphsAtPositions and took // 'positions' which are in text space. The glyph location (in device space) must be // mapped into text space, so that CG can convert it back into device space. - // In 10.10.1, this is handled directly in CTFontDrawGlyphs. + // In 10.10.1, this is handled directly in CTFontDrawGlyphs. // // However, in 10.10.2 color glyphs no longer rotate based on the font transform. // So always make the font transform identity and place the transform on the context.