diff options
author | scroggo <scroggo@google.com> | 2015-03-19 06:03:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-19 06:03:39 -0700 |
commit | 9b77ddde08efe702256355a333cf31ade8f15bb0 (patch) | |
tree | b3bc069a191e747bf5107740d5b3b9b3fc84d1e2 /dm/DMSrcSink.h | |
parent | effcba4a4d1a6fdfdd5ec440e10e1424b768182d (diff) |
Run CodecSrc DM.
Rather than making SkCodec an option instead of SkImageDecoder,
create a separate CodecSrc. This allows us to compare the two.
For both CodecSrc and ImageSrc, do not decode to a gpu backend.
BUG=skia:3475
Review URL: https://codereview.chromium.org/978823002
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index dcd169e322..364afe0e11 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -81,6 +81,18 @@ private: skiagm::GMRegistry::Factory fFactory; }; +class CodecSrc : public Src { +public: + explicit CodecSrc(Path path); + + Error draw(SkCanvas*) const SK_OVERRIDE; + SkISize size() const SK_OVERRIDE; + Name name() const SK_OVERRIDE; +private: + Path fPath; +}; + + class ImageSrc : public Src { public: // divisor == 0 means decode the whole image |