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>
This commit is contained in:
parent
5a2057aee9
commit
55325b7c59
@ -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:
|
||||
//
|
||||
|
@ -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:
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
*/
|
||||
struct PDFMetadata {
|
||||
/**
|
||||
* The document’s title.
|
||||
* The document's title.
|
||||
*/
|
||||
SkString fTitle;
|
||||
/**
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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));
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user