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


C++ SkImageFilter::computeFastBounds方法代码示例

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


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

示例1: computeFastBounds

void SkComposeImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
    SkImageFilter* outer = getInput(0);
    SkImageFilter* inner = getInput(1);

    SkRect tmp;
    inner->computeFastBounds(src, &tmp);
    outer->computeFastBounds(tmp, dst);
}
开发者ID:Arternis,项目名称:skia,代码行数:8,代码来源:SkComposeImageFilter.cpp

示例2: computeFastBounds

SkRect SkImageFilter::computeFastBounds(const SkRect& src) const {
    if (0 == this->countInputs()) {
        return src;
    }
    SkRect combinedBounds = this->getInput(0) ? this->getInput(0)->computeFastBounds(src) : src;
    for (int i = 1; i < this->countInputs(); i++) {
        SkImageFilter* input = this->getInput(i);
        if (input) {
            combinedBounds.join(input->computeFastBounds(src));
        } else {
            combinedBounds.join(src);
        }
    }
    return combinedBounds;
}
开发者ID:03050903,项目名称:skia,代码行数:15,代码来源:SkImageFilter.cpp

示例3: computeFastBounds

void SkImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
    if (0 == fInputCount) {
        *dst = src;
        return;
    }
    if (this->getInput(0)) {
        this->getInput(0)->computeFastBounds(src, dst);
    } else {
        *dst = src;
    }
    for (int i = 1; i < fInputCount; i++) {
        SkImageFilter* input = this->getInput(i);
        if (input) {
            SkRect bounds;
            input->computeFastBounds(src, &bounds);
            dst->join(bounds);
        } else {
            dst->join(src);
        }
    }
}
开发者ID:davidleen,项目名称:skia,代码行数:21,代码来源:SkImageFilter.cpp

示例4: computeFastBounds

SkRect SkComposeImageFilter::computeFastBounds(const SkRect& src) const {
    SkImageFilter* outer = this->getInput(0);
    SkImageFilter* inner = this->getInput(1);

    return outer->computeFastBounds(inner->computeFastBounds(src));
}
开发者ID:03050903,项目名称:skia,代码行数:6,代码来源:SkComposeImageFilter.cpp


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