Fix clang warning about unused lambda capture.

This was found by a tip of tree build of clang.

Change-Id: I9aa3fecd47ae69350e8d58e796f960a991b7759e
Reviewed-on: https://skia-review.googlesource.com/7586
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Brian Salomon 2017-01-25 19:26:59 -05:00 committed by Skia Commit-Bot
parent 9ae32a2024
commit 65a17539d2

View File

@ -185,7 +185,7 @@ protected:
orig.peekPixels(&basePM);
for (auto method : methods) {
canvas->translate(orig.width()/2 + 8.0f, 0);
drawLevels(canvas, orig, [basePM, method](const SkPixmap& prev, const SkPixmap& curr) {
drawLevels(canvas, orig, [method](const SkPixmap& prev, const SkPixmap& curr) {
SkBitmap bm;
SkBitmapScaler::Resize(&bm, prev, method, curr.width(), curr.height());
return bm;