Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: dm/DMSrcSink.h

Issue 1158963002: Add caps overrides to GMs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tiny Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 0537e262a3be3f1474c295eeb6714d9fe0cf140f..9bda8c40f504b351ad5c55c95088be98d36987d8 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 setGrContextOptions(GrContextOptions* options) const {}
};
struct Sink {
@@ -85,6 +86,8 @@ public:
Error draw(SkCanvas*) const override;
SkISize size() const override;
Name name() const override;
+ void setGrContextOptions(GrContextOptions* options) const override;
+
private:
skiagm::GMRegistry::Factory fFactory;
};

Powered by Google App Engine
This is Rietveld 408576698