当前位置: 首页>>代码示例>>C++>>正文


C++ SkFlattenableWriteBuffer::write8方法代码示例

本文整理汇总了C++中SkFlattenableWriteBuffer::write8方法的典型用法代码示例。如果您正苦于以下问题:C++ SkFlattenableWriteBuffer::write8方法的具体用法?C++ SkFlattenableWriteBuffer::write8怎么用?C++ SkFlattenableWriteBuffer::write8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SkFlattenableWriteBuffer的用法示例。


在下文中一共展示了SkFlattenableWriteBuffer::write8方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: flatten

void SkImageRef::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);

    buffer.write8(fConfig);
    buffer.write8(fSampleSize);
    size_t length = fStream->getLength();
    buffer.write32(length);
    fStream->rewind();
    buffer.readFromStream(fStream, length);
}
开发者ID:edrikL,项目名称:gears,代码行数:10,代码来源:SkImageRef.cpp

示例2: flatten

void SkBitmapProcShader::flatten(SkFlattenableWriteBuffer& buffer) {
    this->INHERITED::flatten(buffer);

    fRawBitmap.flatten(buffer);
    buffer.write8(fState.fTileModeX);
    buffer.write8(fState.fTileModeY);
}
开发者ID:AliFarahnak,项目名称:XobotOS,代码行数:7,代码来源:SkBitmapProcShader.cpp

示例3: flatten

void SkColorShader::flatten(SkFlattenableWriteBuffer& buffer) {
    this->INHERITED::flatten(buffer);
    buffer.write8(fInheritColor);
    if (fInheritColor) {
        return;
    }
    buffer.write32(fColor);
}
开发者ID:4Fwolf,项目名称:mt6572_x201,代码行数:8,代码来源:SkShader.cpp

示例4: flatten

void SkAvoidXfermode::flatten(SkFlattenableWriteBuffer& buffer)
{
    this->INHERITED::flatten(buffer);

    buffer.write32(fOpColor);
    buffer.write32(fDistMul);
    buffer.write8(fMode);
}
开发者ID:ACSOP,项目名称:android_external_skia,代码行数:8,代码来源:SkAvoidXfermode.cpp

示例5:

void SkPath1DPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeScalar(fAdvance);
    if (fAdvance > 0) {
        fPath.flatten(buffer);
        buffer.writeScalar(fInitialOffset);
        buffer.write8(fStyle);
    }
}
开发者ID:ghub,项目名称:NVprSDK,代码行数:9,代码来源:Sk1DPathEffect.cpp

示例6: paint_write

static void paint_write(const SkPaint& paint, SkFlattenableWriteBuffer& buffer)
{
    buffer.writeBool(paint.isAntiAlias());
    buffer.write8(paint.getStyle());
    buffer.write8(paint.getAlpha());
    
    if (paint.getStyle() != SkPaint::kFill_Style)
    {
        buffer.writeScalar(paint.getStrokeWidth());
        buffer.writeScalar(paint.getStrokeMiter());
        buffer.write8(paint.getStrokeCap());
        buffer.write8(paint.getStrokeJoin());
    }
    
    buffer.writeFlattenable(paint.getMaskFilter());
    buffer.writeFlattenable(paint.getPathEffect());
    buffer.writeFlattenable(paint.getRasterizer());
    buffer.writeFlattenable(paint.getXfermode());
}
开发者ID:Dieken,项目名称:SurfaceFlinger,代码行数:19,代码来源:SkLayerRasterizer.cpp


注:本文中的SkFlattenableWriteBuffer::write8方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。