diff options
author | 2013-11-26 18:52:31 +0000 | |
---|---|---|
committer | 2013-11-26 18:52:31 +0000 | |
commit | ee21a3e395298021ca70e0d72bf2d983b2fc9225 (patch) | |
tree | 68d216f1101e0cf43e45f1f43eac9519856e932e /dm/DMGpuTask.cpp | |
parent | d7255b6ae43f1931d5ec086fe4e92a664e28ab6f (diff) |
DM: some refactoring
- 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
Diffstat (limited to 'dm/DMGpuTask.cpp')
-rw-r--r-- | dm/DMGpuTask.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dm/DMGpuTask.cpp b/dm/DMGpuTask.cpp index 4d99356237..d4c4254c62 100644 --- a/dm/DMGpuTask.cpp +++ b/dm/DMGpuTask.cpp @@ -1,6 +1,6 @@ #include "DMGpuTask.h" -#include "DMComparisonTask.h" +#include "DMChecksumTask.h" #include "DMUtil.h" #include "DMWriteTask.h" #include "SkCommandLineFlags.h" @@ -60,9 +60,7 @@ void GpuTask::draw() { gr->printCacheStats(); #endif - // We offload checksum comparison to the main CPU threadpool. - // This cuts run time by about 30%. - this->spawnChild(SkNEW_ARGS(ComparisonTask, (*this, fExpectations, bitmap))); + this->spawnChild(SkNEW_ARGS(ChecksumTask, (*this, fExpectations, bitmap))); this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); } |