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

Unified Diff: src/effects/gradients/Sk4fLinearGradient.h

Issue 1764183002: Relocate the specialized linear gradient interval builder (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: 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 | « src/effects/gradients/Sk4fGradientBase.cpp ('k') | src/effects/gradients/Sk4fLinearGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/Sk4fLinearGradient.h
diff --git a/src/effects/gradients/Sk4fLinearGradient.h b/src/effects/gradients/Sk4fLinearGradient.h
index 863376087df61d2ed8372aa273657a54c4919e97..a0a09caf5cde500541ee7c3e9891bf25084b14b8 100644
--- a/src/effects/gradients/Sk4fLinearGradient.h
+++ b/src/effects/gradients/Sk4fLinearGradient.h
@@ -22,6 +22,9 @@ public:
private:
using INHERITED = GradientShaderBase4fContext;
+ void addMirrorIntervals(const SkLinearGradient&, const Sk4f& componentScale,
+ bool dx_is_pos);
+
template<typename DstType, TileMode>
class LinearIntervalProcessor;
@@ -33,6 +36,10 @@ private:
template <typename DstType, bool premul, SkShader::TileMode tileMode>
void shadeSpanInternal(int x, int y, DstType[], int count) const;
+
+ const Interval* findInterval(SkScalar fx) const;
+
+ mutable const Interval* fCachedInterval;
};
#endif // Sk4fLinearGradient_DEFINED
« no previous file with comments | « src/effects/gradients/Sk4fGradientBase.cpp ('k') | src/effects/gradients/Sk4fLinearGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698