diff options
author | mtklein <mtklein@chromium.org> | 2015-05-05 12:59:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-05 12:59:56 -0700 |
commit | d31c13d0441aecc8b2a4fa4f45fd5e59584cb3ea (patch) | |
tree | 9fcb7f63c559ed06dadd01268855b3603de6343d /dm/DMSrcSink.h | |
parent | 14fe8fd3e53b5e988aac189a8bc3ed28904d85c8 (diff) |
DM: add a Via to simulate SP pictures.
Will use this to test the other CL that adds small SkPicture implementations.
Not quite sure why patch_primitive doesn't draw the same in 8888 and sp-8888, but everything else does, so I'm not going to let that hold me back for now.
BUG=skia:
Review URL: https://codereview.chromium.org/1126613005
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index ea5572a7b9..0d612d0b93 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -295,6 +295,17 @@ private: SkAutoTDelete<Sink> fSink; }; +class ViaSingletonPictures : public Sink { +public: + explicit ViaSingletonPictures(Sink*); + + Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; + int enclave() const override { return fSink->enclave(); } + const char* fileExtension() const override { return fSink->fileExtension(); } +private: + SkAutoTDelete<Sink> fSink; +}; + } // namespace DM #endif//DMSrcSink_DEFINED |