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

Unified Diff: dm/DM.cpp

Issue 549183002: Let .skps have Expectations (i.e. work with -r) too. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | dm/DMSKPTask.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 2be37942dd659e3e2145d5c7a229069ac7647a50..41ff2fcc155134839fc6a2e9eb47b13e04a98732 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -136,7 +136,9 @@ static void find_skps(SkTArray<SkString>* skps) {
}
static void kick_off_skps(const SkTArray<SkString>& skps,
- DM::Reporter* reporter, DM::TaskRunner* tasks) {
+ const DM::Expectations& expectations,
+ DM::Reporter* reporter,
+ DM::TaskRunner* tasks) {
for (int i = 0; i < skps.count(); ++i) {
SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(skps[i].c_str()));
if (stream.get() == NULL) {
@@ -151,7 +153,7 @@ static void kick_off_skps(const SkTArray<SkString>& skps,
}
SkString filename = SkOSPath::Basename(skps[i].c_str());
- tasks->add(SkNEW_ARGS(DM::SKPTask, (reporter, tasks, pic, filename)));
+ tasks->add(SkNEW_ARGS(DM::SKPTask, (reporter, tasks, expectations, pic, filename)));
tasks->add(SkNEW_ARGS(DM::PDFTask, (reporter, tasks, pic, filename,
RASTERIZE_PDF_PROC)));
}
@@ -237,7 +239,7 @@ int dm_main() {
DM::TaskRunner tasks;
kick_off_tests(tests, &reporter, &tasks);
kick_off_gms(gms, configs, gpuAPI, *expectations, &reporter, &tasks);
- kick_off_skps(skps, &reporter, &tasks);
+ kick_off_skps(skps, *expectations, &reporter, &tasks);
tasks.wait();
DM::WriteTask::DumpJson();
« no previous file with comments | « no previous file | dm/DMSKPTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698