本文整理汇总了C++中SkFlattenableReadBuffer::readU8方法的典型用法代码示例。如果您正苦于以下问题:C++ SkFlattenableReadBuffer::readU8方法的具体用法?C++ SkFlattenableReadBuffer::readU8怎么用?C++ SkFlattenableReadBuffer::readU8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkFlattenableReadBuffer
的用法示例。
在下文中一共展示了SkFlattenableReadBuffer::readU8方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: INHERITED
SkImageRef::SkImageRef(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer, &gImageRefMutex), fErrorInDecoding(false) {
fConfig = (SkBitmap::Config)buffer.readU8();
fSampleSize = buffer.readU8();
size_t length = buffer.readU32();
fStream = SkNEW_ARGS(SkMemoryStream, (length));
buffer.read((void*)fStream->getMemoryBase(), length);
fPrev = fNext = NULL;
}
示例2: INHERITED
SkBitmapProcShader::SkBitmapProcShader(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer) {
fRawBitmap.unflatten(buffer);
fState.fTileModeX = buffer.readU8();
fState.fTileModeY = buffer.readU8();
fFlags = 0; // computed in setContext
}
示例3: INHERITED
SkAvoidXfermode::SkAvoidXfermode(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer)
{
fOpColor = buffer.readU32();
fDistMul = buffer.readU32();
fMode = (Mode)buffer.readU8();
}
示例4: INHERITED
SkColorShader::SkColorShader(SkFlattenableReadBuffer& b) : INHERITED(b) {
fInheritColor = b.readU8();
if (fInheritColor) {
return;
}
fColor = b.readU32();
}
示例5: INHERITED
SkColorShader::SkColorShader(SkFlattenableReadBuffer& b) : INHERITED(b) {
fFlags = 0; // computed in setContext
fInheritColor = b.readU8();
if (fInheritColor) {
return;
}
fColor = b.readU32();
}
示例6: paint_read
static void paint_read(SkPaint* paint, SkFlattenableReadBuffer& buffer)
{
paint->setAntiAlias(buffer.readBool());
paint->setStyle((SkPaint::Style)buffer.readU8());
paint->setAlpha(buffer.readU8());
if (paint->getStyle() != SkPaint::kFill_Style)
{
paint->setStrokeWidth(buffer.readScalar());
paint->setStrokeMiter(buffer.readScalar());
paint->setStrokeCap((SkPaint::Cap)buffer.readU8());
paint->setStrokeJoin((SkPaint::Join)buffer.readU8());
}
paint->setMaskFilter((SkMaskFilter*)buffer.readFlattenable())->safeUnref();
paint->setPathEffect((SkPathEffect*)buffer.readFlattenable())->safeUnref();
paint->setRasterizer((SkRasterizer*)buffer.readFlattenable())->safeUnref();
paint->setXfermode((SkXfermode*)buffer.readFlattenable())->safeUnref();
}
示例7: SkDEBUGF
SkPath1DPathEffect::SkPath1DPathEffect(SkFlattenableReadBuffer& buffer) {
fAdvance = buffer.readScalar();
if (fAdvance > 0) {
fPath.unflatten(buffer);
fInitialOffset = buffer.readScalar();
fStyle = (Style) buffer.readU8();
} else {
SkDEBUGF(("SkPath1DPathEffect can't use advance <= 0\n"));
// Make Coverity happy.
fInitialOffset = 0;
fStyle = kStyleCount;
}
}
示例8: INHERITED
SkBitmapProcShader::SkBitmapProcShader(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer) {
fRawBitmap.unflatten(buffer);
fState.fTileModeX = buffer.readU8();
fState.fTileModeY = buffer.readU8();
}