aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-01-03 10:36:17 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-03 16:29:37 +0000
commit55325b7c59fe5e8fac809adea7bbec4683d26fab (patch)
tree2bf8fb03fd7c110d6401bf9e41d425a6c5d9ad17
parent5a2057aee9c6293c3dc78cfb013c06ea707d39e4 (diff)
clean up non-ASCII comments
Change-Id: I07ad00133f6a938de70a94024a0ebe36c6c542bb Reviewed-on: https://skia-review.googlesource.com/6524 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Hal Canary <halcanary@google.com>
-rw-r--r--bench/nanobench.cpp2
-rw-r--r--gm/windowrectangles.cpp2
-rw-r--r--include/core/SkDocument.h2
-rw-r--r--src/effects/SkDisplacementMapEffect.cpp2
-rw-r--r--src/pdf/SkPDFMakeCIDGlyphWidthsArray.h2
-rw-r--r--src/pdf/SkPDFMetadata.cpp2
-rw-r--r--src/ports/SkFontHost_mac.cpp2
7 files changed, 7 insertions, 7 deletions
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<SkPDFArray> 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
- // "<?xpacket" and extracť the entire XML.
+ // "<?xpacket" and extract the entire XML.
stream->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.