Review URL: http://codereview.appspot.com/5155043/
git-svn-id: http://skia.googlecode.com/svn/trunk@2393
2bbb7eff-a529-9590-31e7-
b0007b416f81
uint8_t fKernelWidth;
inline bool isEnabled() const {
- return 0 != (fOptFlags & kIsEnabled_OptFlagBit);
+ return SkToBool(fOptFlags & kIsEnabled_OptFlagBit);
}
inline void setEnabled(bool newValue) {
if (newValue) {
}
pdesc.fEdgeAANumEdges = 0;
} else {
- pdesc.fEdgeAANumEdges =
- static_cast<int8_t>(1 + random.nextF() *
- this->getMaxEdges());
+ pdesc.fEdgeAANumEdges = SkToS8(1 + random.nextF() *
+ this->getMaxEdges());
pdesc.fEdgeAAConcave = random.nextF() > .5f;
}
} else {
}
if (ch == '.') {
if (fTokenLength == 0) {
- SkDEBUGCODE(SkScriptValue2 scriptValue);
+ SkDEBUGCODE(SkScriptValue2 scriptValue;)
SkDEBUGCODE(scriptValue.fOperand.fObject = NULL);
int tokenLength = token_length(++script);
const char* token = script;