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

Unified Diff: dm/DMQuiltTask.cpp

Issue 612603002: Don't test the old picture backend anymore. (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 | « dm/DMQuiltTask.h ('k') | dm/DMSerializeTask.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMQuiltTask.cpp
diff --git a/dm/DMQuiltTask.cpp b/dm/DMQuiltTask.cpp
index 9898dda74ae47f4b20d4c129d13eb4351586ef9e..3d7daf27eb0003e07670ed370dc8703da52c753a 100644
--- a/dm/DMQuiltTask.cpp
+++ b/dm/DMQuiltTask.cpp
@@ -12,18 +12,11 @@ DEFINE_int32(quiltTile, 256, "Dimension of (square) quilt tile.");
namespace DM {
-static SkString suffix(QuiltTask::Backend backend, QuiltTask::BBH bbh) {
- static const char* kBackends[] = { "default", "skrecord" };
- static const char* kBBHs[] = { "nobbh", "rtree", "tilegrid" };
- return SkStringPrintf("%s-%s", kBackends[backend], kBBHs[bbh]);
-}
-
-QuiltTask::QuiltTask(const Task& parent, skiagm::GM* gm, SkBitmap reference,
- QuiltTask::BBH bbh, QuiltTask::Backend backend)
+static const char* kBBHs[] = { "nobbh", "rtree", "tilegrid" };
+QuiltTask::QuiltTask(const Task& parent, skiagm::GM* gm, SkBitmap reference, QuiltTask::BBH bbh)
: CpuTask(parent)
, fBBH(bbh)
- , fBackend(backend)
- , fName(UnderJoin(parent.name().c_str(), suffix(backend, bbh).c_str()))
+ , fName(UnderJoin(parent.name().c_str(), kBBHs[bbh]))
, fGM(gm)
, fReference(reference)
{}
@@ -83,8 +76,7 @@ void QuiltTask::draw() {
factory.reset(NULL);
}
- SkAutoTUnref<const SkPicture> recorded(
- RecordPicture(fGM.get(), factory.get(), kSkRecord_Backend == fBackend));
+ SkAutoTUnref<const SkPicture> recorded(RecordPicture(fGM.get(), factory.get()));
SkBitmap full;
AllocatePixels(fReference, &full);
« no previous file with comments | « dm/DMQuiltTask.h ('k') | dm/DMSerializeTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698