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


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

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


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

示例1: writeFloat

void SkColor4Shader::flatten(SkWriteBuffer& buffer) const {
    buffer.writeScalar(fColor4.fR); // writeFloat()
    buffer.writeScalar(fColor4.fG);
    buffer.writeScalar(fColor4.fB);
    buffer.writeScalar(fColor4.fA);
    buffer.writeBool(false);    // TODO how do we flatten colorspaces?
}
开发者ID:03050903,项目名称:skia,代码行数:7,代码来源:SkColorShader.cpp

示例2: flatten

void SkBlurDrawLooper::flatten(SkWriteBuffer& buffer) const {
    buffer.writeColor(fBlurColor);
    buffer.writeScalar(fSigma);
    buffer.writeScalar(fDx);
    buffer.writeScalar(fDy);
    buffer.write32(fBlurFlags);
}
开发者ID:qiangyi1989,项目名称:skia,代码行数:7,代码来源:SkBlurDrawLooper.cpp

示例3:

void SkPath1DPathEffect::flatten(SkWriteBuffer& buffer) const {
    buffer.writeScalar(fAdvance);
    if (fAdvance > 0) {
        buffer.writePath(fPath);
        buffer.writeScalar(fInitialOffset);
        buffer.writeUInt(fStyle);
    }
}
开发者ID:blizardxsi,项目名称:123,代码行数:8,代码来源:Sk1DPathEffect.cpp

示例4: flatten

void SkDropShadowImageFilter::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeScalar(fDx);
    buffer.writeScalar(fDy);
    buffer.writeScalar(fSigmaX);
    buffer.writeScalar(fSigmaY);
    buffer.writeColor(fColor);
    buffer.writeInt(static_cast<int>(fShadowMode));
}
开发者ID:crabfang,项目名称:skia,代码行数:9,代码来源:SkDropShadowImageFilter.cpp

示例5: flatten

void SkPerlinNoiseShader::flatten(SkWriteBuffer& buffer) const {
    buffer.writeInt((int) fType);
    buffer.writeScalar(fBaseFrequencyX);
    buffer.writeScalar(fBaseFrequencyY);
    buffer.writeInt(fNumOctaves);
    buffer.writeScalar(fSeed);
    buffer.writeInt(fTileSize.fWidth);
    buffer.writeInt(fTileSize.fHeight);
}
开发者ID:Arternis,项目名称:skia,代码行数:9,代码来源:SkPerlinNoiseShader.cpp

示例6: flatten

void SkDashPathEffect::flatten(SkWriteBuffer& buffer) const {
    SkASSERT(fInitialDashLength >= 0);

    this->INHERITED::flatten(buffer);
    buffer.writeInt(fInitialDashIndex);
    buffer.writeScalar(fInitialDashLength);
    buffer.writeScalar(fIntervalLength);
    buffer.writeBool(fScaleToFit);
    buffer.writeScalarArray(fIntervals, fCount);
}
开发者ID:JCROM-FxOS,项目名称:b2jc_gecko,代码行数:10,代码来源:SkDashPathEffect.cpp

示例7: flatten

 void flatten(SkWriteBuffer& buffer) const override {
     this->INHERITED::flatten(buffer);
     for (int i = 0; i < 4; ++i) {
         buffer.writeScalar(fK[i]);
     }
     buffer.writeBool(fEnforcePMColor);
 }
开发者ID:Wafflespeanut,项目名称:gecko-dev,代码行数:7,代码来源:SkArithmeticImageFilter.cpp

示例8: flatten

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

    Light tmpLight = fLight;
    tmpLight.fPad = 0;    // for the font-cache lookup to be clean
    buffer.writeByteArray(&tmpLight, sizeof(tmpLight));
    buffer.writeScalar(fBlurSigma);
}
开发者ID:91yuan,项目名称:bones,代码行数:8,代码来源:SkEmbossMaskFilter.cpp

示例9: flatten

void SkMatrixConvolutionImageFilter::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeInt(fKernelSize.fWidth);
    buffer.writeInt(fKernelSize.fHeight);
    buffer.writeScalarArray(fKernel, fKernelSize.fWidth * fKernelSize.fHeight);
    buffer.writeScalar(fGain);
    buffer.writeScalar(fBias);
    buffer.writeInt(fKernelOffset.fX);
    buffer.writeInt(fKernelOffset.fY);
    buffer.writeInt((int) fTileMode);
    buffer.writeBool(fConvolveAlpha);
}
开发者ID:Just-D,项目名称:skia,代码行数:12,代码来源:SkMatrixConvolutionImageFilter.cpp

示例10: flatten

void SkLights::flatten(SkWriteBuffer& buf) const {
    buf.writeScalarArray(&this->ambientLightColor().fX, 3);

    buf.writeInt(this->numLights());
    for (int l = 0; l < this->numLights(); ++l) {
        const Light& light = this->light(l);

        bool isPoint = Light::kPoint_LightType == light.type();

        buf.writeBool(isPoint);
        buf.writeScalarArray(&light.color().fX, 3);
        buf.writeScalarArray(&light.dir().fX, 3);

        if (isPoint) {
            buf.writeScalar(light.intensity());
        }
    }
}
开发者ID:jasonLaster,项目名称:gecko-dev,代码行数:18,代码来源:SkLights.cpp

示例11: flatten

void SkDisplacementMapEffect::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeInt((int) fXChannelSelector);
    buffer.writeInt((int) fYChannelSelector);
    buffer.writeScalar(fScale);
}
开发者ID:china20,项目名称:skia,代码行数:6,代码来源:SkDisplacementMapEffect.cpp

示例12: flatten

void SkComposeShader::flatten(SkWriteBuffer& buffer) const {
    buffer.writeFlattenable(fDst.get());
    buffer.writeFlattenable(fSrc.get());
    buffer.write32((int)fMode);
    buffer.writeScalar(fLerpT);
}
开发者ID:molikto,项目名称:Skia,代码行数:6,代码来源:SkComposeShader.cpp

示例13: flatten

void SkBlurImageFilter::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeScalar(fSigma.fWidth);
    buffer.writeScalar(fSigma.fHeight);
}
开发者ID:Adenilson,项目名称:skia,代码行数:5,代码来源:SkBlurImageFilter.cpp

示例14: flatten

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

示例15: flatten

void SkMagnifierImageFilter::flatten(SkWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    buffer.writeRect(fSrcRect);
    buffer.writeScalar(fInset);
}
开发者ID:mariospr,项目名称:chromium-browser,代码行数:5,代码来源:SkMagnifierImageFilter.cpp


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