Punctuation cleanup to satisfy idiosyncracies of OpenBSD gcc 4.2.1.
Original patch by landry.breuil. http://code.google.com/p/skia/issues/detail?id=626 git-svn-id: http://skia.googlecode.com/svn/trunk@4112 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
15eeca0068
commit
1f90287df3
@ -34,7 +34,7 @@ public:
|
||||
kCFF_Font,
|
||||
kTrueType_Font,
|
||||
kOther_Font,
|
||||
kNotEmbeddable_Font,
|
||||
kNotEmbeddable_Font
|
||||
};
|
||||
// The type of the underlying font program. This field determines which
|
||||
// of the following fields are valid. If it is kOther_Font or
|
||||
@ -56,7 +56,7 @@ public:
|
||||
kItalic_Style = 0x00040,
|
||||
kAllCaps_Style = 0x10000,
|
||||
kSmallCaps_Style = 0x20000,
|
||||
kForceBold_Style = 0x40000,
|
||||
kForceBold_Style = 0x40000
|
||||
};
|
||||
uint16_t fStyle; // Font style characteristics.
|
||||
int16_t fItalicAngle; // Counterclockwise degrees from vertical of the
|
||||
@ -75,7 +75,7 @@ public:
|
||||
kHAdvance_PerGlyphInfo = 0x1, // Populate horizontal advance data.
|
||||
kVAdvance_PerGlyphInfo = 0x2, // Populate vertical advance data.
|
||||
kGlyphNames_PerGlyphInfo = 0x4, // Populate glyph names (Type 1 only).
|
||||
kToUnicode_PerGlyphInfo = 0x8, // Populate ToUnicode table, ignored
|
||||
kToUnicode_PerGlyphInfo = 0x8 // Populate ToUnicode table, ignored
|
||||
// for Type 1 fonts
|
||||
};
|
||||
|
||||
@ -84,7 +84,7 @@ public:
|
||||
enum MetricType {
|
||||
kDefault, // Default advance: fAdvance.count = 1
|
||||
kRange, // Advances for a range: fAdvance.count = fEndID-fStartID
|
||||
kRun, // fStartID-fEndID have same advance: fAdvance.count = 1
|
||||
kRun // fStartID-fEndID have same advance: fAdvance.count = 1
|
||||
};
|
||||
MetricType fType;
|
||||
uint16_t fStartId;
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
|
||||
enum Flags32 {
|
||||
kGlobalAlpha_Flag32 = 1 << 0,
|
||||
kSrcPixelAlpha_Flag32 = 1 << 1,
|
||||
kSrcPixelAlpha_Flag32 = 1 << 1
|
||||
};
|
||||
|
||||
/** Function pointer that blends 32bit colors onto a 32bit destination.
|
||||
|
@ -148,7 +148,7 @@ public:
|
||||
* low byte to high byte: R, G, B, A.
|
||||
*/
|
||||
kRGBA_Premul_Config8888,
|
||||
kRGBA_Unpremul_Config8888,
|
||||
kRGBA_Unpremul_Config8888
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -139,7 +139,7 @@ public:
|
||||
protected:
|
||||
enum Usage {
|
||||
kGeneral_Usage,
|
||||
kSaveLayer_Usage, // <! internal use only
|
||||
kSaveLayer_Usage // <! internal use only
|
||||
};
|
||||
|
||||
struct TextFlags {
|
||||
|
@ -272,7 +272,7 @@ public:
|
||||
* Instructs the writer to inline Factory names as there are seen the
|
||||
* first time (after that we store an index). The pipe code uses this.
|
||||
*/
|
||||
kInlineFactoryNames_Flag = 0x02,
|
||||
kInlineFactoryNames_Flag = 0x02
|
||||
};
|
||||
Flags getFlags() const { return (Flags)fFlags; }
|
||||
void setFlags(Flags flags) { fFlags = flags; }
|
||||
|
@ -245,7 +245,7 @@ public:
|
||||
*/
|
||||
enum LCDOrientation {
|
||||
kHorizontal_LCDOrientation = 0, //!< this is the default
|
||||
kVertical_LCDOrientation = 1,
|
||||
kVertical_LCDOrientation = 1
|
||||
};
|
||||
|
||||
static void SetSubpixelOrientation(LCDOrientation orientation);
|
||||
@ -264,7 +264,7 @@ public:
|
||||
enum LCDOrder {
|
||||
kRGB_LCDOrder = 0, //!< this is the default
|
||||
kBGR_LCDOrder = 1,
|
||||
kNONE_LCDOrder = 2,
|
||||
kNONE_LCDOrder = 2
|
||||
};
|
||||
|
||||
static void SetSubpixelOrder(LCDOrder order);
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
kNormal_BlurType, //!< fuzzy inside and outside
|
||||
kSolid_BlurType, //!< solid inside, fuzzy outside
|
||||
kOuter_BlurType, //!< nothing inside, fuzzy outside
|
||||
kInner_BlurType, //!< fuzzy inside, nothing outside
|
||||
kInner_BlurType //!< fuzzy inside, nothing outside
|
||||
};
|
||||
|
||||
struct BlurInfo {
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
kNo_Hinting = 0,
|
||||
kSlight_Hinting = 1,
|
||||
kNormal_Hinting = 2, //!< this is the default
|
||||
kFull_Hinting = 3,
|
||||
kFull_Hinting = 3
|
||||
};
|
||||
|
||||
Hinting getHinting() const {
|
||||
@ -289,7 +289,7 @@ public:
|
||||
kStroke_Style, //!< stroke the geometry
|
||||
kStrokeAndFill_Style, //!< fill and stroke the geometry
|
||||
|
||||
kStyleCount,
|
||||
kStyleCount
|
||||
};
|
||||
|
||||
/** Return the paint's style, used for controlling how primitives'
|
||||
|
@ -183,11 +183,11 @@ public:
|
||||
kGenA8FromLCD_Flag = 0x0800,
|
||||
|
||||
#ifdef SK_USE_COLOR_LUMINANCE
|
||||
kLuminance_Bits = 3,
|
||||
kLuminance_Bits = 3
|
||||
#else
|
||||
// luminance : 0 for black text, kLuminance_Max for white text
|
||||
kLuminance_Shift = 13, // shift to land in the high 3-bits of Flags
|
||||
kLuminance_Bits = 3, // ensure Flags doesn't exceed 16bits
|
||||
kLuminance_Bits = 3 // ensure Flags doesn't exceed 16bits
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -197,7 +197,7 @@ public:
|
||||
#ifdef SK_USE_COLOR_LUMINANCE
|
||||
#else
|
||||
kLuminance_Max = (1 << kLuminance_Bits) - 1,
|
||||
kLuminance_Mask = kLuminance_Max << kLuminance_Shift,
|
||||
kLuminance_Mask = kLuminance_Max << kLuminance_Shift
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -438,7 +438,7 @@ public:
|
||||
* current block is dynamically allocated, just return the old
|
||||
* block.
|
||||
*/
|
||||
kReuse_OnShrink,
|
||||
kReuse_OnShrink
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
* - Flags and Color are always computed using the LayerInfo's
|
||||
* fFlagsMask and fColorMode.
|
||||
*/
|
||||
kEntirePaint_Bits = -1,
|
||||
kEntirePaint_Bits = -1
|
||||
|
||||
};
|
||||
typedef int32_t BitFlags;
|
||||
|
@ -1376,7 +1376,7 @@ enum {
|
||||
SERIALIZE_PIXELTYPE_RAW_WITH_CTABLE,
|
||||
SERIALIZE_PIXELTYPE_RAW_NO_CTABLE,
|
||||
SERIALIZE_PIXELTYPE_REF_DATA,
|
||||
SERIALIZE_PIXELTYPE_REF_PTR,
|
||||
SERIALIZE_PIXELTYPE_REF_PTR
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -1720,7 +1720,7 @@ const SkMatrix& SkMatrix::I() {
|
||||
gOnce = true;
|
||||
}
|
||||
return gIdentity;
|
||||
};
|
||||
}
|
||||
|
||||
const SkMatrix& SkMatrix::InvalidMatrix() {
|
||||
static SkMatrix gInvalid;
|
||||
|
Loading…
Reference in New Issue
Block a user