aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMReplayTask.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-16 19:13:38 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-16 19:13:38 +0000
commit66bb3d1f5e451f8501f5c28d1dc28fcef6e908e1 (patch)
tree74f5b572abe176fdc61abae703fa1747437d9587 /dm/DMReplayTask.h
parent4cc18156c2f998135eaff6eea7a8a0696dc98ec9 (diff)
DM: duh, don't calculate digests unless we're going to look at them.
This doesn't cut the runtime significantly (~6s either way) but it does cut the CPU time down from ~10s to ~6s. BUG= R=bungeman@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/27476007 git-svn-id: http://skia.googlecode.com/svn/trunk@11826 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'dm/DMReplayTask.h')
-rw-r--r--dm/DMReplayTask.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/dm/DMReplayTask.h b/dm/DMReplayTask.h
index 0ed9351c13..6a96373f72 100644
--- a/dm/DMReplayTask.h
+++ b/dm/DMReplayTask.h
@@ -10,7 +10,7 @@
#include "gm.h"
#include "gm_expectations.h"
-// Records a GM through an SkPicture, draws it, and compares against the reference checksum.
+// Records a GM through an SkPicture, draws it, and compares against the reference bitmap.
namespace DM {
@@ -20,8 +20,7 @@ public:
ReplayTask(const char* name,
const Task& parent,
skiagm::GM*,
- skiagm::GmResultDigest reference,
- SkBitmap::Config);
+ SkBitmap reference);
virtual void draw() SK_OVERRIDE;
virtual bool usesGpu() const SK_OVERRIDE { return false; }
@@ -31,8 +30,7 @@ public:
private:
const SkString fName;
SkAutoTDelete<skiagm::GM> fGM;
- const skiagm::GmResultDigest fReference;
- const SkBitmap::Config fConfig;
+ const SkBitmap fReference;
};
} // namespace DM