Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: tools/VisualBench.cpp

Issue 1164403002: Visual bench on native android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tiny cleanup Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/views/SkWindow.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench.cpp
diff --git a/tools/VisualBench.cpp b/tools/VisualBench.cpp
index fd0662a008fe7b9b2ca1001b27eefa5cd9f8b7b0..c0343d715f4f3614d7b1607a24995d8fa4aa1872 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) {
« no previous file with comments | « src/views/SkWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698