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


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

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


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

示例1: flatten

void SkBlurDrawLooper::flatten(SkFlattenableWriteBuffer& buffer) {
    buffer.writeScalar(fDx);
    buffer.writeScalar(fDy);
    buffer.write32(fBlurColor);
    buffer.writeFlattenable(fBlur);
    buffer.writeFlattenable(fColorFilter);
    buffer.write32(fBlurFlags);
}
开发者ID:zhiqiang-li,项目名称:chromium_base,代码行数:8,代码来源:SkBlurDrawLooper.cpp

示例2: flatten

void SkBlendImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeInt((int) fMode);
    buffer.writeFlattenable(fBackground);
    buffer.writeBool(NULL != fForeground);
    if (NULL != fForeground) {
        buffer.writeFlattenable(fForeground);
    }
}
开发者ID:gw280,项目名称:skia,代码行数:9,代码来源:SkBlendImageFilter.cpp

示例3: flatten

void SkBlurDrawLooper::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeScalar(fDx);
    buffer.writeScalar(fDy);
    buffer.writeColor(fBlurColor);
    buffer.writeFlattenable(fBlur);
    buffer.writeFlattenable(fColorFilter);
    buffer.writeUInt(fBlurFlags);
}
开发者ID:CriGio,项目名称:platform_external_skia,代码行数:9,代码来源:SkBlurDrawLooper.cpp

示例4: flatten

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

    buffer.writeByteArray(fStorage, fSize);
    buffer.writeBool(fCTable != NULL);
    if (fCTable) {
        buffer.writeFlattenable(fCTable);
    }
}
开发者ID:AshishNamdev,项目名称:mozilla-central,代码行数:9,代码来源:SkMallocPixelRef.cpp

示例5: 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

示例6: flatten

void SkImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {
    buffer.writeInt(fInputCount);
    for (int i = 0; i < fInputCount; i++) {
        SkImageFilter* input = getInput(i);
        buffer.writeBool(input != NULL);
        if (input != NULL) {
            buffer.writeFlattenable(input);
        }
    }
}
开发者ID:Frankie-666,项目名称:color-emoji.skia,代码行数:10,代码来源:SkImageFilter.cpp

示例7: flatten

void SkGradientShaderBase::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeFlattenable(fMapper);
    buffer.writeColorArray(fOrigColors, fColorCount);
    buffer.writeUInt(fTileMode);
    if (fColorCount > 2) {
        Rec* recs = fRecs;
        for (int i = 1; i < fColorCount; i++) {
            buffer.writeInt(recs[i].fPos);
            buffer.writeUInt(recs[i].fScale);
        }
    }
    buffer.writeMatrix(fPtsToUnit);
}
开发者ID:mikeaich,项目名称:releases-mozilla-central,代码行数:14,代码来源:SkGradientShader.cpp

示例8: flatten

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

    int storedCount = fCount;
    if (fModes) {
        // negative count signals we have modes
        storedCount = -storedCount;
    }
    buffer.writeInt(storedCount);

    if (fCount) {
        for (int i = 0; i < fCount; ++i) {
            buffer.writeFlattenable(fFilters[i]);
        }
        if (fModes) {
            buffer.writeByteArray(fModes, fCount * sizeof(fModes[0]));
        }
    }
}
开发者ID:AshishNamdev,项目名称:mozilla-central,代码行数:19,代码来源:SkTestImageFilters.cpp

示例9: flatten

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

    int count = fList.count();
    buffer.write32(count);
    const Rec* rec = fList.begin();
    const Rec* stop = fList.end();
    while (rec < stop) {
        buffer.writeFlattenable(rec->fShape);
        if (rec->fMatrixRef) {
            char storage[SkMatrix::kMaxFlattenSize];
            uint32_t size = rec->fMatrixRef->flatten(storage);
            buffer.write32(size);
            buffer.writePad(storage, size);
        } else {
            buffer.write32(0);
        }
        rec += 1;
    }
}
开发者ID:Beifeng,项目名称:WTL-DUI,代码行数:20,代码来源:SkGroupShape.cpp

示例10: flatten

void SkComposeShader::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeFlattenable(fShaderA);
    buffer.writeFlattenable(fShaderB);
    buffer.writeFlattenable(fMode);
}
开发者ID:Cue,项目名称:skia,代码行数:6,代码来源:SkComposeShader.cpp

示例11: flatten

void SkFilterShader::flatten(SkFlattenableWriteBuffer& buffer) {
    this->INHERITED::flatten(buffer);
    buffer.writeFlattenable(fShader);
    buffer.writeFlattenable(fFilter);
}
开发者ID:0omega,项目名称:platform_external_skia,代码行数:5,代码来源:SkColorFilter.cpp

示例12: flatten

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

    buffer.writeFlattenable(fColorFilter);
}
开发者ID:Cue,项目名称:skia,代码行数:5,代码来源:SkColorFilterImageFilter.cpp

示例13: flatten

void SkXfermodeImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeFlattenable(fMode);
}
开发者ID:CriGio,项目名称:platform_external_skia,代码行数:4,代码来源:SkXfermodeImageFilter.cpp

示例14: flatten

void SkAnnotation::flatten(SkFlattenableWriteBuffer& buffer) const {
    buffer.writeUInt(fFlags);
    buffer.writeFlattenable(fDataSet);
}
开发者ID:ConradIrwin,项目名称:gecko-dev,代码行数:4,代码来源:SkAnnotation.cpp

示例15: flatten

/*
    Format: [oe0-factory][pe1-factory][pe0-size][pe0-data][pe1-data]
*/
void SkPairPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeFlattenable(fPE0);
    buffer.writeFlattenable(fPE1);
}
开发者ID:jiezh,项目名称:h5vcc,代码行数:8,代码来源:SkPathEffect.cpp


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