Fix new_texture_image in "preAbandonGpuContext" mode

This fixes a valgrind complaint

Change-Id: I0f51168b2835b83d2bb5580257b02a105e249e31
Reviewed-on: https://skia-review.googlesource.com/8306
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2017-02-10 08:04:06 -05:00 committed by Skia Commit-Bot
parent 19c22e946d
commit 5bea651f0b

View File

@ -505,6 +505,6 @@ DEF_SIMPLE_GM(new_texture_image, canvas, 280, 60) {
canvas->drawImage(texImage, 0, 0);
}
}
canvas->translate(image->width() + kPad, 0);
canvas->translate(kSize + kPad, 0);
}
}