diff options
author | bsalomon <bsalomon@google.com> | 2015-05-27 13:23:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 13:23:23 -0700 |
commit | 4ee6bd86c500d9b464e2f8cb3565544b8c97c0a9 (patch) | |
tree | d5c05d429959793bbb9040b4756bdda01115cf64 /dm/DMSrcSink.h | |
parent | a9f1db7902227143f97e4e29c1eefcd690f6aced (diff) |
Add caps overrides to GMs
Review URL: https://codereview.chromium.org/1158963002
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index 85877df227..bd8c41ee18 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -59,6 +59,7 @@ struct Src { virtual Error SK_WARN_UNUSED_RESULT draw(SkCanvas*) const = 0; virtual SkISize size() const = 0; virtual Name name() const = 0; + virtual void modifyGrContextOptions(GrContextOptions* options) const {} }; struct Sink { @@ -85,6 +86,8 @@ public: Error draw(SkCanvas*) const override; SkISize size() const override; Name name() const override; + void modifyGrContextOptions(GrContextOptions* options) const override; + private: skiagm::GMRegistry::Factory fFactory; }; |