fix some clangtidy warnings
unnecessary copies in for loop Bug: skia: Change-Id: I494daa2524f3cd75b934572a4ecd0ff4b18ac8a9 Reviewed-on: https://skia-review.googlesource.com/105741 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
parent
acd1b01182
commit
b9fc24e465
@ -199,11 +199,11 @@ DEF_SIMPLE_GM(savelayer_maskfilter, canvas, 450, 675) {
|
||||
// as cpu and gpu backends treat these differently (w/ or w/o a SkSpecialImage)
|
||||
const sk_sp<SkImageFilter> imfs[] = {nullptr, SkBlurImageFilter::Make(3.5f, 3.5f, nullptr)};
|
||||
|
||||
for (auto mf : mfs) {
|
||||
for (auto& mf : mfs) {
|
||||
SkPaint layerPaint;
|
||||
layerPaint.setMaskFilter(mf);
|
||||
canvas->save();
|
||||
for (auto imf : imfs) {
|
||||
for (auto& imf : imfs) {
|
||||
layerPaint.setImageFilter(imf);
|
||||
|
||||
canvas->saveLayer(&r, &layerPaint);
|
||||
|
Loading…
Reference in New Issue
Block a user