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

Unified Diff: include/core/SkShader.h

Issue 1726983002: Retire SkShader::kSupports4f_Flag (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: kPrefers4f_Flag Created 4 years, 10 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 | « no previous file | src/core/SkShader.cpp » ('j') | tests/SkColor4fTest.cpp » ('J')
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 72cd4a2dbeec7535bcf5e2b5db178fb553e9cc9a..0645809fe6873a9acbc6190895f109a83b8ea465 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -82,7 +82,10 @@ public:
shadeSpan().
*/
kConstInY32_Flag = 1 << 1,
- kSupports4f_Flag = 1 << 2,
+
+ /** hint for the blitter that 4f is the preferred shading mode.
+ */
+ kPrefers4f_Flag = 1 << 2,
};
/**
@@ -130,10 +133,6 @@ 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 | « no previous file | src/core/SkShader.cpp » ('j') | tests/SkColor4fTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698