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

Unified Diff: include/core/SkShader.h

Issue 1622893002: expand unitests for color4f (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « include/core/SkColorFilter.h ('k') | src/core/SkColor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkShader.h
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index bf6d6ddb42fd59c148a25b4991aa0b911077c368..297091d54206fe64b427f5760c70bb8a07086d81 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -121,6 +121,10 @@ public:
*/
virtual uint32_t getFlags() const { return 0; }
+ bool supports4f() const {
+ return SkToBool(this->getFlags() & kSupports4f_Flag);
+ }
+
/**
* Called for each span of the object being drawn. Your subclass should
* set the appropriate colors (with premultiplied alpha) that correspond
« no previous file with comments | « include/core/SkColorFilter.h ('k') | src/core/SkColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698