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


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

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


在下文中一共展示了SkFlattenableWriteBuffer::write32方法的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 SkImageRef_ashmem::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    const char* uri = getURI();
    if (uri) {
        size_t len = strlen(uri);
        buffer.write32(len);
        buffer.writePad(uri, len);
    } else {
        buffer.write32(0);
    }
}
开发者ID:FunkyVerb,项目名称:devtools-window,代码行数:11,代码来源:SkImageRef_ashmem.cpp

示例3: flatten

void SkFlipPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const {
    this->INHERITED::flatten(buffer);
    
    buffer.write32(fSize);
    // only need to write page0
    buffer.writePad(fPage0, fSize);
}
开发者ID:Beifeng,项目名称:WTL-DUI,代码行数:7,代码来源:SkFlipPixelRef.cpp

示例4: flatten

void SkBlurMaskFilterImpl::flatten(SkFlattenableWriteBuffer& buffer)
{
    this->INHERITED::flatten(buffer);
    buffer.writeScalar(fRadius);
    buffer.write32(fBlurStyle);
    buffer.write32(fBlurFlags);
}
开发者ID:sergecodd,项目名称:FireFox-OS,代码行数:7,代码来源:SkBlurMaskFilter.cpp

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

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

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

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

示例9: flatten

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

    buffer.write32(fSize);
    buffer.writePad(fStorage, fSize);
    if (fCTable) {
        buffer.writeBool(true);
        fCTable->flatten(buffer);
    } else {
        buffer.writeBool(false);
    }
}
开发者ID:Beifeng,项目名称:WTL-DUI,代码行数:12,代码来源:SkMallocPixelRef.cpp

示例10: flatten

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

    buffer.write32(fRB);

    // TODO: replace this bulk write with a chunky one that can trim off any
    // trailing bytes on each scanline (in case rowbytes > width*size)
    size_t size = this->info().getSafeSize(fRB);
    buffer.writeByteArray(fStorage, size);
    buffer.writeBool(fCTable != NULL);
    if (fCTable) {
        fCTable->writeToBuffer(buffer);
    }
}
开发者ID:CriGio,项目名称:platform_external_skia,代码行数:14,代码来源:SkMallocPixelRef.cpp

示例11: flatten

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

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

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

示例12: flatten

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

    buffer.write32(fLayers.count());

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

    while ((rec = (const SkLayerRasterizer_Rec*)iter.next()) != NULL)
    {
#if 0
        rec->fPaint.flatten(buffer);
#else
        paint_write(rec->fPaint, buffer);
#endif
        buffer.writeScalar(rec->fOffset.fX);
        buffer.writeScalar(rec->fOffset.fY);
    }
}
开发者ID:Dieken,项目名称:SurfaceFlinger,代码行数:20,代码来源:SkLayerRasterizer.cpp

示例13: flatten

 virtual void flatten(SkFlattenableWriteBuffer& buffer) {
     buffer.write32(fMul);
     buffer.write32(fAdd);
 }
开发者ID:AOSP-JF-MM,项目名称:platform_external_skia,代码行数:4,代码来源:SkColorFilters.cpp

示例14: flatten

 virtual void flatten(SkFlattenableWriteBuffer& buffer) {
     this->INHERITED::flatten(buffer);
     buffer.write32(fColor);
     buffer.write32(fMode);
 }
开发者ID:0omega,项目名称:platform_external_skia,代码行数:5,代码来源:SkColorFilters.cpp

示例15: flatten

void SkPixelXorXfermode::flatten(SkFlattenableWriteBuffer& wb) {
    this->INHERITED::flatten(wb);
    wb.write32(fOpColor);
}
开发者ID:0omega,项目名称:platform_external_skia,代码行数:4,代码来源:SkPixelXorXfermode.cpp


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