diff options
author | joshualitt <joshualitt@chromium.org> | 2015-06-12 12:51:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-12 12:51:44 -0700 |
commit | 030dc847dc497b011c417dc6694e8b6de290895f (patch) | |
tree | d943ac79c22575874932e4100e3dd91dccac168f /tools | |
parent | 6eba3054229a9b656e372c3b80003f442a5d6161 (diff) |
Visual bench on native android
BUG=skia:
Review URL: https://codereview.chromium.org/1164403002
Diffstat (limited to 'tools')
-rw-r--r-- | tools/VisualBench.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/VisualBench.cpp b/tools/VisualBench.cpp index fd0662a008..c0343d715f 100644 --- a/tools/VisualBench.cpp +++ b/tools/VisualBench.cpp @@ -56,7 +56,7 @@ VisualBench::VisualBench(void* hwnd, int argc, char** argv) SkOSFile::Iter it(FLAGS_skps[i], ".skp"); SkString path; while (it.next(&path)) { - skps.push_back() = SkOSPath::Join(FLAGS_skps[0], path.c_str()); + skps.push_back() = SkOSPath::Join(FLAGS_skps[i], path.c_str()); fTimings.push_back().fName = path.c_str(); } } @@ -126,7 +126,9 @@ void VisualBench::resetContext() { } void VisualBench::setupRenderTarget() { - fRenderTarget.reset(this->renderTarget(fAttachmentInfo, fInterface, fContext)); + if (fContext) { + fRenderTarget.reset(this->renderTarget(fAttachmentInfo, fInterface, fContext)); + } } inline void VisualBench::renderFrame(SkCanvas* canvas) { |