/** \class PointData
PointData aggregates all the information needed to draw the point
- primitives returned by an 'asPoints' call.
+ primitives returned by an 'asPoints' call.
*/
class PointData {
public:
PointData()
: fFlags(0) {
fSize.set(SK_Scalar1, SK_Scalar1);
- // 'asPoints' needs to initialize/fill-in 'fClipRect' if it sets
+ // 'asPoints' needs to initialize/fill-in 'fClipRect' if it sets
// the kUseClip flag
};
~PointData() {};
* Does applying this path effect to 'src' yield a set of points? If so,
* optionally return the points in 'results'.
*/
- virtual bool asPoints(PointData* results, const SkPath& src,
+ virtual bool asPoints(PointData* results, const SkPath& src,
const SkStrokeRec&, const SkMatrix&) const;
protected:
virtual bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*) SK_OVERRIDE;
- virtual bool asPoints(PointData* results, const SkPath& src,
+ virtual bool asPoints(PointData* results, const SkPath& src,
const SkStrokeRec&, const SkMatrix&) const SK_OVERRIDE;
// overrides for SkFlattenable
*dst = src;
}
-bool SkPathEffect::asPoints(PointData* results, const SkPath& src,
+bool SkPathEffect::asPoints(PointData* results, const SkPath& src,
const SkStrokeRec&, const SkMatrix&) const {
return false;
}
if (!fontFormatRef) {
return 0;
}
-
+
SInt32 fontFormatValue;
if (!CFNumberGetValue(fontFormatRef, kCFNumberSInt32Type, &fontFormatValue)) {
CFRelease(fontFormatRef);
return 0;
}
CFRelease(fontFormatRef);
-
+
switch (fontFormatValue) {
case kCTFontFormatOpenTypePostScript:
return SkSFNTHeader::fontType_OpenTypeCFF::TAG;
if (0 == fontType) {
return NULL;
}
-
+
// get table tags
int numTables = CountTables(uniqueID);
SkTDArray<SkFontTableTag> tableTags;
tableSize));
entry->offset = SkEndian_SwapBE32(dataPtr - dataStart);
entry->logicalLength = SkEndian_SwapBE32(tableSize);
-
+
dataPtr += (tableSize + 3) & ~3;
++entry;
}