ee21a3e395
- rename ComparisonTask to ChecksumTask - have ChecksumTask handle all the checksum-checking - turn on all extra modes by default - simplify progress output to a countdown BUG= R=bsalomon@google.com Review URL: https://codereview.chromium.org/88543002 git-svn-id: http://skia.googlecode.com/svn/trunk@12398 2bbb7eff-a529-9590-31e7-b0007b416f81
31 lines
817 B
C++
31 lines
817 B
C++
#ifndef DMChecksumTask_DEFINED
|
|
#define DMChecksumTask_DEFINED
|
|
|
|
#include "DMTask.h"
|
|
#include "SkBitmap.h"
|
|
#include "SkString.h"
|
|
#include "gm_expectations.h"
|
|
|
|
namespace DM {
|
|
|
|
// ChecksumTask compares an SkBitmap against some Expectations.
|
|
// Moving this off the GPU threadpool is a nice (~30%) runtime win.
|
|
class ChecksumTask : public Task {
|
|
public:
|
|
ChecksumTask(const Task& parent, skiagm::Expectations, SkBitmap);
|
|
|
|
virtual void draw() SK_OVERRIDE;
|
|
virtual bool usesGpu() const SK_OVERRIDE { return false; }
|
|
virtual bool shouldSkip() const SK_OVERRIDE { return false; }
|
|
virtual SkString name() const SK_OVERRIDE { return fName; }
|
|
|
|
private:
|
|
const SkString fName;
|
|
const skiagm::Expectations fExpectations;
|
|
const SkBitmap fBitmap;
|
|
};
|
|
|
|
} // namespace DM
|
|
|
|
#endif // DMChecksumTask_DEFINED
|