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


C++ SkWriteBuffer::writePoint方法代码示例

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


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

示例1: flatten

void SkLayerRasterizer::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);

    SkASSERT(fLayers);
    buffer.writeInt(fLayers->count());

    SkDeque::F2BIter                iter(*fLayers);
    const SkLayerRasterizer_Rec*    rec;

    while ((rec = (const SkLayerRasterizer_Rec*)iter.next()) != NULL) {
        buffer.writePaint(rec->fPaint);
        buffer.writePoint(rec->fOffset);
    }
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:14,代码来源:SkLayerRasterizer.cpp

示例2: flatten

void SkLayerDrawLooper::flatten(SkWriteBuffer& buffer) const {
    buffer.writeInt(fCount);

    Rec* rec = fRecs;
    for (int i = 0; i < fCount; i++) {
        // Legacy "flagsmask" field -- now ignored, remove when we bump version
        buffer.writeInt(0);

        buffer.writeInt(rec->fInfo.fPaintBits);
        buffer.writeInt(rec->fInfo.fColorMode);
        buffer.writePoint(rec->fInfo.fOffset);
        buffer.writeBool(rec->fInfo.fPostTranslate);
        buffer.writePaint(rec->fPaint);
        rec = rec->fNext;
    }
}
开发者ID:435420057,项目名称:soui,代码行数:16,代码来源:SkLayerDrawLooper.cpp

示例3: flatten

void SkOffsetImageFilter::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writePoint(fOffset);
}
开发者ID:Arternis,项目名称:skia,代码行数:4,代码来源:SkOffsetImageFilter.cpp

示例4: flatten

void SkSweepGradient::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writePoint(fCenter);
}
开发者ID:lilycc,项目名称:skia,代码行数:4,代码来源:SkSweepGradient.cpp

示例5: flatten

void SkLinearGradient::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writePoint(fStart);
    buffer.writePoint(fEnd);
}
开发者ID:geekygenius,项目名称:skia,代码行数:5,代码来源:SkLinearGradient.cpp

示例6: flatten

void SkRadialGradient::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writePoint(fCenter);
    buffer.writeScalar(fRadius);
}
开发者ID:BertiKarsunke,项目名称:skia,代码行数:5,代码来源:SkRadialGradient.cpp


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