diff options
author | 2015-01-15 08:30:25 -0800 | |
---|---|---|
committer | 2015-01-15 08:30:25 -0800 | |
commit | 709d2c3e5062c5b57f91273bfc11a751f5b2bb88 (patch) | |
tree | b997d8e2f4fcd0c289017586540c876a1cef9c96 /dm/DMImageTask.h | |
parent | 8eadff1e8c9cdb8f941c893a4763c03f5f083c62 (diff) |
Sketch DM refactor.
BUG=skia:3255
I think this supports everything DM used to, but has completely refactored how
it works to fit the design in the bug.
Configs like "tiles-gpu" are automatically wired up.
I wouldn't suggest looking at this as a diff. There's just a bunch of deleted
files, a few new files, and one new file that shares a name with a deleted file
(DM.cpp).
NOTREECHECKS=true
Review URL: https://codereview.chromium.org/788243008
Diffstat (limited to 'dm/DMImageTask.h')
-rw-r--r-- | dm/DMImageTask.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dm/DMImageTask.h b/dm/DMImageTask.h deleted file mode 100644 index eb059d7625..0000000000 --- a/dm/DMImageTask.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef DMImageTask_DEFINED -#define DMImageTask_DEFINED - -#include "DMReporter.h" -#include "DMTask.h" -#include "DMTaskRunner.h" -#include "SkData.h" -#include "SkString.h" - -// Decode an image into its natural bitmap, perhaps decoding random subsets. - -namespace DM { - -class ImageTask : public CpuTask { -public: - ImageTask(Reporter*, TaskRunner*, const SkData*, SkString name, int subsets = 0); - - void draw() SK_OVERRIDE; - bool shouldSkip() const SK_OVERRIDE { return false; } - SkString name() const SK_OVERRIDE { return fName; } - -private: - SkAutoTUnref<const SkData> fEncoded; - const SkString fName; - int fSubsets; -}; - -} // namespace DM - -#endif // DMImageTask_DEFINED |